set timeBeignPeriod in DllMain - Add SetProcessPriorityBoost
This commit is contained in:
parent
bfb0edd2c6
commit
c44055a214
5 changed files with 62 additions and 55 deletions
8
render.c
8
render.c
|
@ -88,10 +88,7 @@ DWORD WINAPI render_main(void)
|
|||
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
|
||||
timeBeginPeriod(1);
|
||||
|
||||
|
||||
|
||||
|
||||
while(ddraw->render.thread)
|
||||
{
|
||||
scale_w = (float)ddraw->width/tex_width;
|
||||
|
@ -162,8 +159,7 @@ DWORD WINAPI render_main(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
timeEndPeriod(1);
|
||||
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, tex);
|
||||
|
||||
wglMakeCurrent(NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue