Revert "- be a bit more aggressive with the GC when not running the game loop."
This reverts commit b4d03501af.
This commit is contained in:
parent
31549997b4
commit
e529f2d4d1
4 changed files with 1 additions and 22 deletions
|
|
@ -1316,15 +1316,6 @@ void G_Ticker ()
|
|||
default:
|
||||
break;
|
||||
}
|
||||
// Do some more aggressive GC maintenance when the game ticker is inactive.
|
||||
if ((gamestate != GS_LEVEL && gamestate != GS_TITLELEVEL) || paused || P_CheckTickerPaused())
|
||||
{
|
||||
size_t ac = max<size_t>(10, GC::AllocCount);
|
||||
for (size_t i = 0; i < ac; i++)
|
||||
{
|
||||
if (!GC::CheckGC()) break;
|
||||
}
|
||||
}
|
||||
|
||||
// [MK] Additional ticker for UI events right after all others
|
||||
primaryLevel->localEventManager->PostUiTick();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue