hopefully, optimize multiple events between frames

There's no point handling input faster than a frame can be drawn,
so try to overwrite events that occur between frames. This should
make apps that rely on offscreen draws (such as picking) much faster,
as they don't have to draw offscreen for stale events.