FPS counter

This commit is contained in:
sorket 2023-07-16 03:42:05 -04:00
parent b8a489a6ec
commit 912067928e
1 changed files with 1 additions and 1 deletions

View File

@ -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();