public class GraphicTimer
extends java.lang.Object
sync
method in the game loop with the desired
frame-rate
Adapted from http://www.java-gaming.org/index.php?topic=22933.5Constructor and Description |
---|
GraphicTimer() |
Modifier and Type | Method and Description |
---|---|
void |
sync(int fps)
Periodic call to this method in the main loop
insures a constant frame-rate.
|