You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Display 2 decimals instead of 1 in editor frametime labels
When comparing different graphics settings or optimizations, this makes precise measurements and frametime comparisons easier. This also makes the editor FPS display use `pad_decimals()` for consistency with the implementation in `master`.
This commit is contained in:
@@ -2248,10 +2248,10 @@ bool Main::iteration() {
|
||||
if (frame > 1000000) {
|
||||
if (editor || project_manager) {
|
||||
if (print_fps) {
|
||||
print_line(vformat("Editor FPS: %d (%s mspf)", frames, rtos(1000.0 / frames).pad_decimals(1)));
|
||||
print_line(vformat("Editor FPS: %d (%s mspf)", frames, rtos(1000.0 / frames).pad_decimals(2)));
|
||||
}
|
||||
} else if (GLOBAL_GET("debug/settings/stdout/print_fps") || print_fps) {
|
||||
print_line(vformat("Project FPS: %d (%s mspf)", frames, rtos(1000.0 / frames).pad_decimals(1)));
|
||||
print_line(vformat("Project FPS: %d (%s mspf)", frames, rtos(1000.0 / frames).pad_decimals(2)));
|
||||
}
|
||||
|
||||
Engine::get_singleton()->_fps = frames;
|
||||
|
||||
Reference in New Issue
Block a user