1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

reduce delay

This commit is contained in:
FunkyFr3sh 2018-10-08 13:48:55 +02:00
parent c2c60683b2
commit 83fab457d1

View File

@ -304,11 +304,11 @@ static void Render()
{ {
active = FALSE; active = FALSE;
BOOL released = ReleaseDirect3D(); BOOL released = ReleaseDirect3D();
Sleep(500); Sleep(100);
if (minimized) if (minimized)
{ {
ShowWindow(ddraw->hWnd, SW_SHOWMINNOACTIVE); ShowWindow(ddraw->hWnd, SW_MINIMIZE);
if (!released) if (!released)
ChangeDisplaySettings(&ddraw->mode, 0); ChangeDisplaySettings(&ddraw->mode, 0);