diff options
| author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-11-09 17:17:55 +0100 |
|---|---|---|
| committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-11-09 17:17:55 +0100 |
| commit | f61ee47a2e440948112d0c4284b1958cd763b717 (patch) | |
| tree | ef3ad9ceff5658539c94fcbab6b20c26ba066a15 /main | |
| parent | eb98fd94421b124a5848d7ee6c7ead4337222c6c (diff) | |
| download | redot-engine-f61ee47a2e440948112d0c4284b1958cd763b717.tar.gz | |
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.
Diffstat (limited to 'main')
| -rw-r--r-- | main/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp index 0cf805f94a..eb6e69e256 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2687,10 +2687,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; |
