Add missing counters

This commit is contained in:
Vincent Lejeune 2014-11-20 01:05:10 +01:00
parent 93619555fc
commit 8356941986
3 changed files with 14 additions and 3 deletions

View File

@ -420,13 +420,17 @@ void IrrDriver::renderScene(scene::ICameraSceneNode * const camnode, unsigned po
World::getWorld()->isFogEnabled())
{
PROFILER_PUSH_CPU_MARKER("- Fog", 0xFF, 0x00, 0x00);
ScopedGPUTimer Timer(getGPUTimer(Q_FOG));
renderLightsScatter(pointlightcount);
PROFILER_POP_CPU_MARKER();
}
PROFILER_PUSH_CPU_MARKER("- Skybox", 0xFF, 0x00, 0xFF);
renderSkybox(camnode);
PROFILER_POP_CPU_MARKER();
{
PROFILER_PUSH_CPU_MARKER("- Skybox", 0xFF, 0x00, 0xFF);
ScopedGPUTimer Timer(getGPUTimer(Q_SKYBOX));
renderSkybox(camnode);
PROFILER_POP_CPU_MARKER();
}
if (getRH())
{
@ -444,6 +448,7 @@ void IrrDriver::renderScene(scene::ICameraSceneNode * const camnode, unsigned po
// Render anything glowing.
if (!m_mipviz && !m_wireframe && UserConfigParams::m_glow)
{
ScopedGPUTimer Timer(getGPUTimer(Q_GLOW));
irr_driver->setPhase(GLOW_PASS);
renderGlow(glows);
} // end glow

View File

@ -45,6 +45,9 @@ static const char* GPU_Phase[Q_LAST] =
"PointLights",
"SSAO",
"Solid Pass 2",
"Fog",
"Skybox",
"Glow",
"Transparent",
"Particles",
"Displacement",

View File

@ -44,6 +44,9 @@ enum QueryPerf
Q_POINTLIGHTS,
Q_SSAO,
Q_SOLID_PASS2,
Q_FOG,
Q_SKYBOX,
Q_GLOW,
Q_TRANSPARENT,
Q_PARTICLES,
Q_DISPLACEMENT,