Sign in to follow this  
BlueSpud

Camera Movement Frame-Rate Independent

Recommended Posts

BlueSpud    650

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
BlueSpud    650

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

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