diff --git a/build/graphics/poker.exe b/build/graphics/poker.exe index bdeacf0..a19b5f5 100644 Binary files a/build/graphics/poker.exe and b/build/graphics/poker.exe differ diff --git a/casino3d.inc b/casino3d.inc index 6b3dab5..ec7871a 100644 --- a/casino3d.inc +++ b/casino3d.inc @@ -38,6 +38,9 @@ CreateThread PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD CreateEventA PROTO :DWORD,:DWORD,:DWORD,:DWORD SetEvent PROTO :DWORD WaitForSingleObject PROTO :DWORD,:DWORD +timeBeginPeriod PROTO :DWORD +timeEndPeriod PROTO :DWORD +timeGetTime PROTO C3D_POINT STRUCT x dd ? @@ -4691,6 +4694,7 @@ Init3DEngine PROC push esi push edi + invoke timeBeginPeriod, 1 call LoadDisplaySettings3D call Create3DWindow test eax, eax @@ -5008,7 +5012,7 @@ StartCasino3D PROC uses ebx esi edi call Init3DEngine test eax, eax jz engine_shutdown - invoke GetTickCount + invoke timeGetTime mov rngSeed3D, eax mov previousTick3D, eax engine_loop: @@ -5022,7 +5026,7 @@ engine_loop: jmp engine_loop dispatch_frame: - invoke GetTickCount + invoke timeGetTime mov frameStart3D, eax sub eax, previousTick3D cmp eax, 50 @@ -5321,7 +5325,7 @@ present_frame: xor eax, eax mov ecx, 64 rep stosd - invoke GetTickCount + invoke timeGetTime sub eax, frameStart3D mov ecx, 16 cmp settingsLowSpec, 1 @@ -5373,6 +5377,7 @@ engine_shutdown: invoke DestroyWindow, h3DWnd mov h3DWnd, 0 @@: + invoke timeEndPeriod, 1 ret StartCasino3D ENDP diff --git a/poker.exe b/poker.exe index bdeacf0..a19b5f5 100644 Binary files a/poker.exe and b/poker.exe differ diff --git a/poker.obj b/poker.obj index 3dc0b5f..40b1bc5 100644 Binary files a/poker.obj and b/poker.obj differ