Jump to content
  • Advertisement
Sign in to follow this  
SpeedLow

how to limit fps in glut ?

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

Advertisement

As far as I know GLUT doesn't have any way of enabling vsync. Maybe you should consider using a modern

library like GLFW or SDL. In GLFW you would call:

 

glfwSwapInterval(1);

Share this post


Link to post
Share on other sites

Minimal effort question = minimal effort answer.

http://lmgtfy.com/?q=glut+limit+fps

 

It needs to be said that you should beware of any recommendations in these results to use Sleep calls.

 

Sleep calls are appropriate if you want to reduce CPU load.

Sleep calls are not appropriate for controlling framerate.

And these two are not the same thing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!