OGL: Only flush the frame dumping thread on dumping.

This fixes the screenshot stutter, as this needs more than a frame.
So we won't stall on the png writing at all until emulation stops or
a new screenshot is requested.
This commit is contained in:
degasus 2016-11-08 21:08:16 +01:00
parent 52caa4f2f5
commit 21774bdc81
1 changed files with 1 additions and 1 deletions

View File

@ -1450,7 +1450,6 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
FlushFrameDump();
DumpFrame(flipped_trc, ticks);
// Finish up the current frame, print some stats
@ -1609,6 +1608,7 @@ void Renderer::DumpFrame(const TargetRectangle& flipped_trc, u64 ticks)
}
else
{
FlushFrameDump();
std::swap(m_frame_dumping_pbo[0], m_frame_dumping_pbo[1]);
std::swap(m_frame_pbo_is_mapped[0], m_frame_pbo_is_mapped[1]);
std::swap(m_last_frame_width[0], m_last_frame_width[1]);