use THREAD_PRIORITY_BELOW_NORMAL in render thread to prevent slowdowns
This commit is contained in:
parent
56693f67ad
commit
bfb0edd2c6
2 changed files with 1 additions and 1 deletions
BIN
ddraw.dll
BIN
ddraw.dll
Binary file not shown.
|
@ -484,7 +484,7 @@ HRESULT __stdcall ddraw_CreateSurface(IDirectDrawImpl *This, LPDDSURFACEDESC lpD
|
|||
if(lpDDSurfaceDesc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue