Jump to content

Image of the Day

Setting up a playground for our bad boys... #maya #gameart #screenshotsaturday #gamedev https://t.co/V5mfxWkzHg
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Camera Movement Frame-Rate Independent

4: Adsense

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   

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



#2 dpadam450   Members   

2309
Like
0Likes
Like

Posted 24 July 2013 - 12:56 PM

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



#3 BlueSpud   Members   

609
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.