summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-04-09 15:41:34 +0200
committerGitHub <noreply@github.com>2021-04-09 15:41:34 +0200
commitba1adc384cc038e5b67fafce98050ce5441e0c45 (patch)
tree4b6bdff2355e4e4268b9a288ed94dff64156cb20
parent8ca8868ef9914333302f4a0a9cd752c2ca457972 (diff)
parent157d8e4d36b5286146554aedda0e286056bbe32c (diff)
Merge pull request #47735 from Calinou/improve-cli-print-fps-display
Improve command line `--print-fps` display
-rw-r--r--main/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 4635d377c4..4103fad17c 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -2537,10 +2537,10 @@ bool Main::iteration() {
if (frame > 1000000) {
if (editor || project_manager) {
if (print_fps) {
- print_line("Editor FPS: " + itos(frames));
+ print_line(vformat("Editor FPS: %d (%s mspf)", frames, rtos(1000.0 / frames).pad_decimals(1)));
}
} else if (GLOBAL_GET("debug/settings/stdout/print_fps") || print_fps) {
- print_line("Game FPS: " + itos(frames));
+ print_line(vformat("Project FPS: %d (%s mspf)", frames, rtos(1000.0 / frames).pad_decimals(1)));
}
Engine::get_singleton()->_fps = frames;