Jump to content

  • Log In with Google      Sign In   
  • Create Account

Camera Movement Frame-Rate Independent


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 BlueSpud   Members   -  Reputation: 453

Like
0Likes
Like

Posted 24 July 2013 - 11:14 AM

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



Sponsor:

#2 dpadam450   Members   -  Reputation: 949

Like
0Likes
Like

Posted 24 July 2013 - 12:56 PM

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



#3 BlueSpud   Members   -  Reputation: 453

Like
0Likes
Like

Posted 24 July 2013 - 01:41 PM

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, 24 July 2013 - 01:51 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS