I've spent some time coding in OpenGL and SDL.
I've got a 3D scene where I can fly around. The mouse allows to look around
(triggers glRotatef). Mouse pointer is set to invisible and each redraw the
mouse is warped to the center of the screen, so the difference between
mousemotion and screen center is given to glRotatef.
My problem is: When setting a maximum fps lower than 120 the mouse movement
is not reported cleanly (?). The camera then rotates jumpy (or doesn't
rotate at all). Translation however works fine (!) (keyboard input, not
mouse) over SDL_GetKeyState.
I have done time based movement using SDL_GetTime and thus redrawing the
scene every time a certain time intervall t has passed, where t =
Any ideas ?