MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getGPUTime

Method getGPUTime

Source/Basic/Application.cpp:1063–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061}
1062
1063double Application::getGPUTime() const noexcept {
1064 const bgfx::Stats* stats = bgfx::getStats();
1065 if (stats->gpuTimeEnd < stats->gpuTimeBegin) {
1066 return 0;
1067 }
1068 return s_cast<double>(stats->gpuTimeEnd - stats->gpuTimeBegin) / s_cast<double>(stats->gpuTimerFreq);
1069}
1070
1071double Application::getLogicTime() const noexcept {
1072 return _logicTime;

Callers 1

updateMethod · 0.80

Calls 1

getStatsFunction · 0.85

Tested by

no test coverage detected