diff options
| author | degasus <wickmarkus@web.de> | 2016-11-08 21:08:16 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-11-10 12:59:22 +0100 |
| commit | 21774bdc8171799c0ab72d6d8653de496e82c4cd (patch) | |
| tree | 777c0b8e6c96c9b02482eec936d491d10d69bf00 /Source/Core/VideoBackends/OGL/Render.cpp | |
| parent | 52caa4f2f56f2fae4ec679944782c73315fd1ad7 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index b1fae3b98c..c6f04c3cd6 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -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]); |
