remove sleep hack and add a smarter game speed limiter that takes the games performance into account

This commit is contained in:
FunkyFr3sh 2018-10-31 11:48:41 +01:00
parent 2d4841beda
commit 0e6d415f63
4 changed files with 34 additions and 12 deletions

View file

@ -32,6 +32,7 @@ extern BOOL ShowDriverWarning;
extern RECT WindowRect;
BOOL detect_cutscene();
void LimitGameTicks();
DWORD WINAPI render_main(void);
DWORD WINAPI render_soft_main(void);
@ -104,8 +105,8 @@ typedef struct IDirectDrawImpl
BOOL hidemouse;
char shader[MAX_PATH];
BOOL wine;
int sleep;
LONG minimized;
DWORD ticklength;
} IDirectDrawImpl;