mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed issue #1309.
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user