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

use THREAD_PRIORITY_BELOW_NORMAL in render thread to prevent slowdowns

This commit is contained in:
FunkyFr3sh 2017-11-12 20:48:28 +01:00
parent 56693f67ad
commit bfb0edd2c6
2 changed files with 1 additions and 1 deletions

BIN
ddraw.dll

Binary file not shown.

View File

@ -484,7 +484,7 @@ HRESULT __stdcall ddraw_CreateSurface(IDirectDrawImpl *This, LPDDSURFACEDESC lpD
if(lpDDSurfaceDesc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) if(lpDDSurfaceDesc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
{ {
This->render.thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)This->renderer, NULL, 0, NULL); This->render.thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)This->renderer, NULL, 0, NULL);
SetThreadPriority(This->render.thread, THREAD_PRIORITY_ABOVE_NORMAL); SetThreadPriority(This->render.thread, THREAD_PRIORITY_BELOW_NORMAL);
} }
return DD_OK; return DD_OK;