Browse Source

Fixed issue #1309.

Branimir Karadžić 8 years ago
parent
commit
60bd34b520
1 changed files with 4 additions and 2 deletions
  1. 4 2
      examples/common/example-glue.cpp

+ 4 - 2
examples/common/example-glue.cpp

@@ -228,8 +228,10 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
 	const bgfx::Stats* stats = bgfx::getStats();
 	const bgfx::Stats* stats = bgfx::getStats();
 	const double toMsCpu = 1000.0/stats->cpuTimerFreq;
 	const double toMsCpu = 1000.0/stats->cpuTimerFreq;
 	const double toMsGpu = 1000.0/stats->gpuTimerFreq;
 	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)"
 	ImGui::Text("Submit CPU %0.3f, GPU %0.3f (L: %d)"