From 60bd34b520a89184cb45bd7ba2ee57adfaa7a538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 8 Jan 2018 09:54:34 -0800 Subject: [PATCH] Fixed issue #1309. --- examples/common/example-glue.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/common/example-glue.cpp b/examples/common/example-glue.cpp index 348fe29ab..b2dc8bda0 100644 --- a/examples/common/example-glue.cpp +++ b/examples/common/example-glue.cpp @@ -228,8 +228,10 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText) const bgfx::Stats* stats = bgfx::getStats(); const double toMsCpu = 1000.0/stats->cpuTimerFreq; const double toMsGpu = 1000.0/stats->gpuTimerFreq; - ImGui::Text("Frame %0.3f" - , double(stats->cpuTimeFrame)*toMsCpu + const double frameMs = double(stats->cpuTimeFrame)*toMsCpu; + ImGui::Text("Frame %0.3f [ms], %0.3f FPS" + , frameMs + , 1000.0/frameMs ); ImGui::Text("Submit CPU %0.3f, GPU %0.3f (L: %d)"