Sign in to follow this  

Camera Movement Frame-Rate Independent

This topic is 1608 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

I've have the code for my camera for a while now, and recently I've been cleaning a lot of code up and implementing a proper game loop. I'm using an FPS style camera and I want it to run at a constant speed regardless of the frame-rate. I've looked at a lot of things, and they work, but It looks choppy and bad (even if I'm running at 60fps and even 100fps). Anyone's help would be appreciated, and I'm using glut on OSX, so preferably help would be directed towards that.

Thanks in advance :) 

Share this post


Link to post
Share on other sites

Look for the equivalent of Windows QueryPerformanceCounter / QueryPerformanceFrequency for Mac.

 Got that to work, I just wasn't using it properly before. Thanks :)

Edited by BlueSpud

Share this post


Link to post
Share on other sites

This topic is 1608 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.

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