It''s not a very good way to make your game run at an equal pace. For one thing, other computer may be slower and run at 80 fps so this doesn''t guarantee that all games run at an equal pace.
To do that, there are several methods and varying levels of complexities should you wish to implement them.
Half-life scales back on textures when running on a lousy graphics card. This auto scaling feature works great to acheive higher frame rates on less powerful systems. Plus you can implement this for other systems, like play less ambient music or something like that.
To lock down framerates, you can use the sleep function, though that is a waste of time if you use it just like that. Some people suggest that you calculate the amount of time to sleep from the amount of time spent and then sleep for that duration.
In order not to be wasting CPU cycles, you can implement your input and networking modules in seperate threads, which don''t require that they follow the framerate.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement