force at least 5 FPS to avoid problems in the menus
This commit is contained in:
parent
24b0e5cf24
commit
9cbd2de62f
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ typedef struct IDirectDrawImpl
|
|||
char shader[MAX_PATH];
|
||||
BOOL wine;
|
||||
int sleep;
|
||||
BOOL resetDirect3D9;
|
||||
LONG resetDirect3D9;
|
||||
|
||||
} IDirectDrawImpl;
|
||||
|
||||
|
|
|
@ -214,7 +214,7 @@ static void Render()
|
|||
DWORD tick_start = 0;
|
||||
DWORD tick_end = 0;
|
||||
|
||||
while (ddraw->render.run && WaitForSingleObject(ddraw->render.sem, INFINITE) != WAIT_FAILED)
|
||||
while (ddraw->render.run && WaitForSingleObject(ddraw->render.sem, 200) != WAIT_FAILED)
|
||||
{
|
||||
#if _DEBUG
|
||||
DrawFrameInfoStart();
|
||||
|
|
Loading…
Reference in a new issue