🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

SDL Mouselook jumpiness

Started by
0 comments, last by lonesock 19 years, 10 months ago
We've got an issue with the SDL build of our engine on Linux which doesn't occur in the Windows one (which doesn't use SDL), where the mouselook jumps frequently, regardless of scene load. When we replaced SDL_GetTicks() (to determine how far to turn the camera) with a constant number, the issue is solved, but of course this isn't a proper solution. But SDL_GetTicks() just uses GetTimeOfDay() on Unix, so we're rather stumped as to why this is happening. We're also doing mouse smoothing, so I doubt it's an issue there. Ideas?
Advertisement
maybe log your delta t's and look for jumps there. In that case, mouse smoothing won't help, you'll need to do some kind of averaging of the timing info.

This topic is closed to new replies.

Advertisement