Sign in to follow this  
openX

What is the purpose of ... ??

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this