limit ups values to multiples of 60, allow unlimited ups

This commit is contained in:
yugecin
2018-10-02 21:37:08 +02:00
parent 677de45366
commit 4aebbf2cae
3 changed files with 36 additions and 7 deletions

View File

@@ -252,7 +252,9 @@ public class DisplayContainer implements ErrorDumpable, SkinChangedListener {
}
Display.processMessages();
Display.sync(targetUpdatesPerSecond);
if (targetUpdatesPerSecond >= 60) {
Display.sync(targetUpdatesPerSecond);
}
}
}

View File

@@ -60,7 +60,7 @@ public class FpsRenderState implements ResolutionChangedListener {
}
private String getText(int value, String unit) {
if (OPTION_USE_FPS_DELTAS.state) {
if (OPTION_USE_FPS_DELTAS.state || value > 1000) {
return String.format("%.2fms", 1000f / value);
}
return value + " " + unit;