google-code-export / gummworld2

Automatically exported from code.google.com/p/gummworld2
Other
2 stars 0 forks source link

GameClock hitches when frame rate is capped low (e.g. 30) #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a little program with a careening rect.
2. Create GameClock(30,30).
3. Use the recommended run loop: if clock.update_ready()...
4. Notice the rect motion periodically freezes for a very short moment.

What is the expected output? What do you see instead?
Duh. Rect motion should be smooth, no hiccups.

Please use labels and text to provide additional information.
This issue is not apparent when frame rate is sufficiently high, like 120 FPS 
or uncapped.

Original issue reported on code.google.com by stabbing...@gmail.com on 22 Jan 2011 at 8:29

GoogleCodeExporter commented 9 years ago
Fixed in SVN rev 182. GameClock.tick() was not accurately calculating wait 
intervals.

Original comment by stabbing...@gmail.com on 29 Jan 2011 at 7:14