Fixed issue #1309.
This commit is contained in:
parent
13d6399b9d
commit
60bd34b520
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user