Large speed increase suggested by relnev
This commit is contained in:
@@ -108,6 +108,7 @@ DWORD GBitMask;
|
|||||||
BYTE BackColor=0;
|
BYTE BackColor=0;
|
||||||
DEVMODE mode;
|
DEVMODE mode;
|
||||||
|
|
||||||
|
int DTimerCheck;
|
||||||
float MouseMinX=0;
|
float MouseMinX=0;
|
||||||
float MouseMaxX=256;
|
float MouseMaxX=256;
|
||||||
float MouseMinY=0;
|
float MouseMinY=0;
|
||||||
@@ -1605,6 +1606,7 @@ void CheckTimers(void)
|
|||||||
// call Game60hzcall
|
// call Game60hzcall
|
||||||
// popad
|
// popad
|
||||||
// }
|
// }
|
||||||
|
DTimerCheck = 1;
|
||||||
Game60hzcall();
|
Game60hzcall();
|
||||||
start += update_ticks_pc;
|
start += update_ticks_pc;
|
||||||
}
|
}
|
||||||
@@ -1674,7 +1676,11 @@ void UpdateVFrame(void)
|
|||||||
WinUpdateDevices();
|
WinUpdateDevices();
|
||||||
CheckTimers();
|
CheckTimers();
|
||||||
|
|
||||||
|
if (DTimerCheck == 1)
|
||||||
|
{
|
||||||
SDL_UpdateRect(surface,0,0,0,0);
|
SDL_UpdateRect(surface,0,0,0,0);
|
||||||
|
DTimerCheck = 0;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
int DataNeeded;
|
int DataNeeded;
|
||||||
int SPCSize=256;
|
int SPCSize=256;
|
||||||
|
|||||||
Reference in New Issue
Block a user