correction timer update

This commit is contained in:
Antoine 2021-06-17 01:20:04 +02:00
parent c4e3c9623d
commit fc7b2b7945

View File

@ -127,14 +127,8 @@ public class match {
height = Integer.parseInt((String) settings.get("height"));
width = Integer.parseInt((String) settings.get("width"));
} catch (FileNotFoundException e) {
} catch (ParseException | IOException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ParseException e) {
e.printStackTrace();
}
}
@ -363,7 +357,8 @@ public class match {
// Tracking update
engine.cameraTracking();
timer = 99 - frameCount/99;
timer = 99 - frameCount/60;
timeStamp2 = System.currentTimeMillis();
while(timeStamp2-timeStamp1<(1000/60)) {
timeStamp2 = System.currentTimeMillis();