From 85bd56a0571bb8c0521dc2de93bee01a154cd720 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Sat, 14 Apr 2001 01:09:30 +0000 Subject: [PATCH] Large speed increase suggested by relnev --- zsnes/src/linux/sdllink.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zsnes/src/linux/sdllink.c b/zsnes/src/linux/sdllink.c index f0f82492..cb81b75b 100644 --- a/zsnes/src/linux/sdllink.c +++ b/zsnes/src/linux/sdllink.c @@ -108,6 +108,7 @@ DWORD GBitMask; BYTE BackColor=0; DEVMODE mode; +int DTimerCheck; float MouseMinX=0; float MouseMaxX=256; float MouseMinY=0; @@ -1605,6 +1606,7 @@ void CheckTimers(void) // call Game60hzcall // popad // } + DTimerCheck = 1; Game60hzcall(); start += update_ticks_pc; } @@ -1674,7 +1676,11 @@ void UpdateVFrame(void) WinUpdateDevices(); CheckTimers(); - SDL_UpdateRect(surface,0,0,0,0); + if (DTimerCheck == 1) + { + SDL_UpdateRect(surface,0,0,0,0); + DTimerCheck = 0; + } #else int DataNeeded; int SPCSize=256;