Disable Vsync while holding tab to disable the frame limit, and allow toggling vsync while emulation is running in OGL.

D3D9 still doesn't support changing vsync while emulation is running.

Fixes issue 6111.
This commit is contained in:
Rachel Bryk
2013-03-18 20:41:45 -04:00
parent c5033e8594
commit 7c2c4662a7
7 changed files with 19 additions and 3 deletions

View File

@ -314,7 +314,7 @@ Renderer::Renderer()
s_backbuffer_height = (int)GLInterface->GetBackBufferHeight();
// Handle VSync on/off
int swapInterval = g_ActiveConfig.bVSync ? 1 : 0;
int swapInterval = g_ActiveConfig.IsVSync() ? 1 : 0;
GLInterface->SwapInterval(swapInterval);
// check the max texture width and height
@ -1307,6 +1307,8 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
GL_REPORT_ERRORD();
GLInterface->SwapInterval(g_ActiveConfig.IsVSync() ? 1 : 0);
// Clean out old stuff from caches. It's not worth it to clean out the shader caches.
DLCache::ProgressiveCleanup();
TextureCache::Cleanup();