Add a performance counter for MLAA

This commit is contained in:
vlj 2014-06-08 00:25:34 +02:00
parent 94900fe2c8
commit 31c773079e
3 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,7 @@ enum QueryPerf
Q_BLOOM,
Q_TONEMAP,
Q_MOTIONBLUR,
Q_MLAA,
Q_GUI,
Q_LAST
};

View File

@ -862,6 +862,7 @@ FrameBuffer *PostProcessing::render(scene::ICameraSceneNode * const camnode)
if (UserConfigParams::m_mlaa) // MLAA. Must be the last pp filter.
{
PROFILER_PUSH_CPU_MARKER("- MLAA", 0xFF, 0x00, 0x00);
ScopedGPUTimer Timer(irr_driver->getGPUTimer(Q_MLAA));
glEnable(GL_FRAMEBUFFER_SRGB);
irr_driver->getFBO(FBO_MLAA_COLORS).Bind();
renderPassThrough(in_fbo->getRTT()[0]);

View File

@ -408,6 +408,7 @@ void Profiler::draw()
"Bloom",
"Tonemap",
"Motion Blur",
"MLAA",
"GUI",
};
std::ostringstream oss;