Original Post
In the java game programming tutorials I have been reading they have something like this
This dos not seem right to me. I think that that would run at deferent speeds on deferent computers.
Do I not understand Thread.sleep or is there a better way to do it?
Thanks for any help
[edited by - Abob on November 3, 2002 10:52:11 PM]
public void run () {
while (true) {
DrawFrame();
repaint ();
try
{ Thread.sleep (REFRESH_RATE);
}
catch (Exception exc)
{}
}
}