The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Losing Mouse Move Events in OS X
ggadwa at charter.net
Guest

Is there a way to quickly tell is SDL is dropping events from it's
queue? In my engine, if I look up and turn very fast, every once and a
while the mouse movement will freeze for 1/2 a second; all other times,
it turns perfectly smooth. This could be my code, but it looks good, so
I want to investigate a little into what SDL is doing.

Note that if you do not make fast, rapid turns, it never freezes up. It
*seems* like the queue is getting full.

There also seems to be no way (in the current docs) to increase the
queue size. Is it hard-coded in the library, or is there a define I
could alter in the code and recompile?

[>] Brian
Losing Mouse Move Events in OS X
Ryan C. Gordon
Guest

Quote:
Note that if you do not make fast, rapid turns, it never freezes up. It
*seems* like the queue is getting full.

Never had this problem...are you reading the whole queue every frame?

--ryan.
Losing Mouse Move Events in OS X
Bill Kendrick
Guest

On Tue, Jan 10, 2006 at 04:01:30PM -0500, Ryan C. Gordon wrote:
Quote:

Quote:
Note that if you do not make fast, rapid turns, it never freezes up. It
*seems* like the queue is getting full.

Never had this problem...are you reading the whole queue every frame?

Indeed. (e.g., "while (SDL_PollEvent(&event))" rather than simply 'if ...')

-bill!