SDL bug? or my problem?

Started by
2 comments, last by omgomghilol 17 years, 10 months ago
Hi yall, I'm making a 3D game and I'm using SDL. I noticed that moving the mouse without pressing any button slows down the frame rate, but if I move the mouse with any mouse button held down then the frame rate doesn't go down. I tracked this problem to a call to SDL_PumpEvents(). Is there anything I can do or should I not use SDL? Thanx.
Advertisement
I think the "problem" can come from your event loop. There are different methods for such loops, but I can't find the link to the article I've read about it ^^''

Anyway, with win32 and DirectX, the same thing happens, so I guess it's perfectly normal.
I read in a tutorial that the event loop is slow. I tested without an event loop. All I did was call SDL_PumpEvents() and the frame rate goes down when I move the mouse.
Define 'the framerate goes down'. From what, to what?

This topic is closed to new replies.

Advertisement