Add a performance counter for MLAA
This commit is contained in:
parent
94900fe2c8
commit
31c773079e
@ -125,6 +125,7 @@ enum QueryPerf
|
||||
Q_BLOOM,
|
||||
Q_TONEMAP,
|
||||
Q_MOTIONBLUR,
|
||||
Q_MLAA,
|
||||
Q_GUI,
|
||||
Q_LAST
|
||||
};
|
||||
|
@ -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]);
|
||||
|
@ -408,6 +408,7 @@ void Profiler::draw()
|
||||
"Bloom",
|
||||
"Tonemap",
|
||||
"Motion Blur",
|
||||
"MLAA",
|
||||
"GUI",
|
||||
};
|
||||
std::ostringstream oss;
|
||||
|
Loading…
Reference in New Issue
Block a user