only limit ticks in gui thread
This commit is contained in:
parent
24d66d8a30
commit
0345cbdda3
3 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,9 @@ BOOL util_is_avx_supported()
|
|||
|
||||
void util_limit_game_ticks()
|
||||
{
|
||||
if (GetCurrentThreadId() != g_ddraw->gui_thread)
|
||||
return;
|
||||
|
||||
if (g_ddraw->ticks_limiter.htimer)
|
||||
{
|
||||
FILETIME ft = { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue