limit ups values to multiples of 60, allow unlimited ups
This commit is contained in:
@@ -252,7 +252,9 @@ public class DisplayContainer implements ErrorDumpable, SkinChangedListener {
|
||||
}
|
||||
|
||||
Display.processMessages();
|
||||
Display.sync(targetUpdatesPerSecond);
|
||||
if (targetUpdatesPerSecond >= 60) {
|
||||
Display.sync(targetUpdatesPerSecond);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user