Reverted sync2 change

This commit is contained in:
Caspian Rychlik-Prince 2004-11-07 17:26:45 +00:00
parent a5d83e735b
commit 14b1199812

View file

@ -290,7 +290,7 @@ public final class Display {
*/
private static long timeLate;
public static void sync2(int fps) {
long gapTo = Sys.getTimerResolution() / (fps > 1 ? fps - 1 : 1) + timeThen;
long gapTo = Sys.getTimerResolution() / fps + timeThen;
timeNow = Sys.getTime();
while (gapTo > timeNow + timeLate) {