Force GC to run periodically in order to reduce stuttering

This commit is contained in:
2023-05-08 21:13:55 +03:00
parent 69cdb1268a
commit da149d32cf
7 changed files with 78 additions and 3 deletions

View File

@@ -828,6 +828,18 @@ void MCore::GC::Collect(int32 generation)
mono_gc_collect(generation);
}
void MCore::GC::Collect(int32 generation, MGCCollectionMode collectionMode, bool blocking, bool compacting)
{
PROFILE_CPU();
mono_gc_collect(generation);
}
int32 MCore::GC::MaxGeneration()
{
PROFILE_CPU();
return mono_gc_max_generation();
}
void MCore::GC::WaitForPendingFinalizers()
{
PROFILE_CPU();