mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
Merge pull request #3070 from raven02/patch-11
May fix Vsync broken previously
This commit is contained in:
commit
3d7abf91e5
1 file changed
+2
-2
@@ -171,7 +171,7 @@ static const u8 flushBeforeCommandList[] = {
|
||||
|
||||
GLES_GPU::GLES_GPU()
|
||||
: resized_(false) {
|
||||
lastVsync_ = g_Config.bVSync;
|
||||
lastVsync_ = g_Config.bVSync ? 1 : 0;
|
||||
if (gl_extensions.EXT_swap_control_tear) {
|
||||
// See http://developer.download.nvidia.com/opengl/specs/WGL_EXT_swap_control_tear.txt
|
||||
glstate.SetVSyncInterval(g_Config.bVSync ? -1 :0);
|
||||
@@ -258,7 +258,7 @@ void GLES_GPU::DumpNextFrame() {
|
||||
|
||||
void GLES_GPU::BeginFrame() {
|
||||
// Turn off vsync when unthrottled
|
||||
int desiredVSyncInterval = g_Config.bVSync;
|
||||
int desiredVSyncInterval = g_Config.bVSync ? 1 : 0;
|
||||
if ((PSP_CoreParameter().unthrottle) || (PSP_CoreParameter().fpsLimit == 1))
|
||||
desiredVSyncInterval = 0;
|
||||
if (desiredVSyncInterval != lastVsync_) {
|
||||
|
||||
Reference in new issue
Block a user