Added profiler marker to keep consistency with other effects
This commit is contained in:
parent
9b3908cc62
commit
8980a32c20
@ -1637,14 +1637,19 @@ FrameBuffer *PostProcessing::render(scene::ICameraSceneNode * const camnode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle lightning rendering
|
// Handle lightning rendering
|
||||||
if (World::getWorld() != NULL)
|
|
||||||
{
|
{
|
||||||
Weather* m_weather = World::getWorld()->getWeather();
|
PROFILER_PUSH_CPU_MARKER("- Lightning", 0xFF, 0x00, 0x00);
|
||||||
|
ScopedGPUTimer Timer(irr_driver->getGPUTimer(Q_LIGHTNING));
|
||||||
if (m_weather != NULL && m_weather->shouldLightning())
|
if (World::getWorld() != NULL)
|
||||||
{
|
{
|
||||||
renderLightning(m_weather->getIntensity());
|
Weather* m_weather = World::getWorld()->getWeather();
|
||||||
|
|
||||||
|
if (m_weather != NULL && m_weather->shouldLightning())
|
||||||
|
{
|
||||||
|
renderLightning(m_weather->getIntensity());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
PROFILER_POP_CPU_MARKER();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround a bug with srgb fbo on sandy bridge windows
|
// Workaround a bug with srgb fbo on sandy bridge windows
|
||||||
|
@ -55,6 +55,7 @@ enum QueryPerf
|
|||||||
Q_BLOOM,
|
Q_BLOOM,
|
||||||
Q_TONEMAP,
|
Q_TONEMAP,
|
||||||
Q_MOTIONBLUR,
|
Q_MOTIONBLUR,
|
||||||
|
Q_LIGHTNING,
|
||||||
Q_MLAA,
|
Q_MLAA,
|
||||||
Q_GUI,
|
Q_GUI,
|
||||||
Q_LAST
|
Q_LAST
|
||||||
|
Loading…
Reference in New Issue
Block a user