mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
force at least 5 FPS to avoid problems in the menus
This commit is contained in:
parent
24b0e5cf24
commit
9cbd2de62f
@ -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…
x
Reference in New Issue
Block a user