Jump to content
  • Advertisement
Sign in to follow this  
Syphoon

SDL Mouselook jumpiness

This topic is 5432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!