]> git.itanic.dy.fi Git - sdl-planets/commit
main loop: Limit to max 60FPS
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Wed, 31 Mar 2010 16:44:43 +0000 (19:44 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Wed, 31 Mar 2010 16:44:43 +0000 (19:44 +0300)
commita671b000111a310cbb34aa77c0eed6243cb8bb99
tree9684c4f5966e8149a194ec3ca84f044a6579e728
parent5a6c73b1157b309ff1538d52dd0367939f3ee25e
main loop: Limit to max 60FPS

Do not even try to draw more than 60FPS. If we have time left, do some
extra simulation steps.

As an extra bonus this patch fixes the timer usage which was broken
since we moved to higher clock resolution.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c