Noop: Output perf stats.

This commit is contained in:
Branimir Karadžić 2018-08-22 17:17:25 -07:00
parent 8242925550
commit e054389c3c

View File

@ -237,8 +237,24 @@ namespace bgfx { namespace noop
{
}
void submit(Frame* /*_render*/, ClearQuad& /*_clearQuad*/, TextVideoMemBlitter& /*_textVideoMemBlitter*/) override
void submit(Frame* _render, ClearQuad& /*_clearQuad*/, TextVideoMemBlitter& /*_textVideoMemBlitter*/) override
{
const int64_t timerFreq = bx::getHPFrequency();
const int64_t timeBegin = bx::getHPCounter();
Stats& perfStats = _render->m_perfStats;
perfStats.cpuTimeBegin = timeBegin;
perfStats.cpuTimeEnd = timeBegin;
perfStats.cpuTimerFreq = timerFreq;
perfStats.gpuTimeBegin = 0;
perfStats.gpuTimeEnd = 0;
perfStats.gpuTimerFreq = 1000000000;
bx::memSet(perfStats.numPrims, 0, sizeof(perfStats.numPrims) );
perfStats.gpuMemoryMax = -INT64_MAX;
perfStats.gpuMemoryUsed = -INT64_MAX;
}
void blitSetup(TextVideoMemBlitter& /*_blitter*/) override