From 955d143897d82ee5615fa1222a2651d85eda3430 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Wed, 5 Apr 2006 11:50:15 +0000 Subject: [PATCH] Disable vsync when fast forwarding, inspired by pSXAuthor --- zsnes/src/win/winlink.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 69f595d3..653db1bc 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -321,6 +321,7 @@ void DDrawError(){ } extern "C" BYTE vsyncon; +extern "C" BYTE curblank; extern "C" BYTE KitchenSync; extern "C" BYTE TripleBufferWin; extern "C" BYTE PauseFocusChange; @@ -345,11 +346,10 @@ void DrawScreen() if (DD_Primary->Flip(NULL, DDFLIP_WAIT) == DDERR_SURFACELOST) DD_Primary->Restore(); } - } else { - if (vsyncon == 1) + if (vsyncon == 1 && curblank != 0x40) { if (lpDD->WaitForVerticalBlank(DDWAITVB_BLOCKBEGIN, NULL) != DD_OK) { @@ -359,7 +359,6 @@ void DrawScreen() DD_Primary->Blt(&rcWindow, DD_CFB, &BlitArea, DDBLT_WAIT, NULL); DD_Primary->Restore(); } - } else {