correction timer update
This commit is contained in:
@@ -127,14 +127,8 @@ public class match {
|
|||||||
|
|
||||||
height = Integer.parseInt((String) settings.get("height"));
|
height = Integer.parseInt((String) settings.get("height"));
|
||||||
width = Integer.parseInt((String) settings.get("width"));
|
width = Integer.parseInt((String) settings.get("width"));
|
||||||
|
} catch (ParseException | IOException e) {
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
} catch (ParseException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,7 +357,8 @@ public class match {
|
|||||||
// Tracking update
|
// Tracking update
|
||||||
engine.cameraTracking();
|
engine.cameraTracking();
|
||||||
|
|
||||||
timer = 99 - frameCount/99;
|
timer = 99 - frameCount/60;
|
||||||
|
|
||||||
timeStamp2 = System.currentTimeMillis();
|
timeStamp2 = System.currentTimeMillis();
|
||||||
while(timeStamp2-timeStamp1<(1000/60)) {
|
while(timeStamp2-timeStamp1<(1000/60)) {
|
||||||
timeStamp2 = System.currentTimeMillis();
|
timeStamp2 = System.currentTimeMillis();
|
||||||
|
Reference in New Issue
Block a user