Members - Reputation: 100
Posted 09 February 2012 - 03:56 PM
// All game functions for displaying the player and map and stuff.
Am I going about this the right way? It has really slowed the game down, but there is still a lot of CPU being used. How can I cut down on that the right way? Is this a good way to limit the FPS? Thank you. :3
Members - Reputation: 663
Posted 09 February 2012 - 04:13 PM
start timer game functions stop timer SDL_Delay(1000/FPS-timer) repeat 1000/FPS gives you the time for one frame in milliseconds. You may want to look into framerate indepentent code later