From 912067928ed1a43bb4f460a4264730d66e38e164 Mon Sep 17 00:00:00 2001 From: sorket Date: Sun, 16 Jul 2023 03:42:05 -0400 Subject: [PATCH] FPS counter --- Projects/Client/Studio/Source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Client/Studio/Source/main.cpp b/Projects/Client/Studio/Source/main.cpp index 353e090..43b1983 100644 --- a/Projects/Client/Studio/Source/main.cpp +++ b/Projects/Client/Studio/Source/main.cpp @@ -31,7 +31,7 @@ int main(int argc, char** argv) while (window.isVisible()) { - window.statusBar()->showMessage(QString::asprintf("Dt=%f, Rt=%f", window.ogreWidget->delta, window.ogreWidget->render_time)); + window.statusBar()->showMessage(QString::asprintf("Dt=%f, Rt=%f, FPS=%f", window.ogreWidget->delta, window.ogreWidget->render_time, 1 / window.ogreWidget->delta)); app.processEvents(); window.ogreWidget->render(); world->preStep();