Camera Movement Frame-Rate Independent

Started by
1 comment, last by BlueSpud 10 years, 9 months ago

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 :)

Advertisement

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

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

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

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

This topic is closed to new replies.

Advertisement