improve fps limiter for vsync and maxfps=-1
This commit is contained in:
parent
d2903413a0
commit
a6f85fbd73
11 changed files with 223 additions and 217 deletions
9
src/dd.c
9
src/dd.c
|
@ -9,6 +9,7 @@
|
|||
#include "render_d3d9.h"
|
||||
#include "render_gdi.h"
|
||||
#include "render_ogl.h"
|
||||
#include "fps_limiter.h"
|
||||
#include "debug.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
@ -817,11 +818,11 @@ ULONG dd_Release()
|
|||
g_ddraw->flip_limiter.htimer = NULL;
|
||||
}
|
||||
|
||||
if (g_ddraw->fps_limiter.htimer)
|
||||
if (g_fpsl.htimer)
|
||||
{
|
||||
CancelWaitableTimer(g_ddraw->fps_limiter.htimer);
|
||||
CloseHandle(g_ddraw->fps_limiter.htimer);
|
||||
g_ddraw->fps_limiter.htimer = NULL;
|
||||
CancelWaitableTimer(g_fpsl.htimer);
|
||||
CloseHandle(g_fpsl.htimer);
|
||||
g_fpsl.htimer = NULL;
|
||||
}
|
||||
|
||||
DeleteCriticalSection(&g_ddraw->cs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue