mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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];
|
char shader[MAX_PATH];
|
||||||
BOOL wine;
|
BOOL wine;
|
||||||
int sleep;
|
int sleep;
|
||||||
BOOL resetDirect3D9;
|
LONG resetDirect3D9;
|
||||||
|
|
||||||
} IDirectDrawImpl;
|
} IDirectDrawImpl;
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ static void Render()
|
|||||||
DWORD tick_start = 0;
|
DWORD tick_start = 0;
|
||||||
DWORD tick_end = 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
|
#if _DEBUG
|
||||||
DrawFrameInfoStart();
|
DrawFrameInfoStart();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user