소스 검색

Fixed issue #1309.

Branimir Karadžić 8 년 전
부모
커밋
60bd34b520
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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 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)"