Skip to content

Commit

Permalink
Merge pull request #47735 from Calinou/improve-cli-print-fps-display
Browse files Browse the repository at this point in the history
Improve command line `--print-fps` display
  • Loading branch information
akien-mga authored Apr 9, 2021
2 parents 8ca8868 + 157d8e4 commit ba1adc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba1adc3

Please sign in to comment.