Sign in to follow this  
miminawewe

SDL bug? or my problem?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this