Jump to content
  • Advertisement
Sign in to follow this  
openX

What is the purpose of ... ??

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

Hello, everybody. What is the purpose of counting FPS in games or graphics programs for ? And Does it has concern with synchronous problem in speed among computers ?? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Besides telling how fast the game is going on, it is used to limit speed.
At 60fps the game will go at certain speed. At 120fps it will go at double speed, and at 30fps it will go half slower.

We don't want that, so we count fps to normalize it and make the game run at constant speed no matter the FPS. With this method, higher FPS means smoother gameplay, but not faster.

Cheers
Dark Sylinc

Share this post


Link to post
Share on other sites
Multiply all time-dependent quantities by 1/timePerFrame. Typical examples of such quantities are velocity and rotation.

Share this post


Link to post
Share on other sites
Actually, it's usually best to run the game logic/physics at a constant rate, say 60 updates/s. This way you don't need to worry so much about the game working differently on different computers and it's easier to make the game deterministic, which is great for debugging and recording replays. Also helps with physics simulations, because the time step is constant.

If the computer can't handle rendering 60 FPS, you simply render the screen as often as you can and update the game logic as many times as needed between rendering to keep gametime up with realtime. If your FPS drops too low for comfort, you can try to automagically reduce visual quality.

If your rendering keeps up with 60 FPS, to prevent the gametime from overtaking realtime, you sleep off the extra milliseconds.

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!