3 ms·
Do you count Python, where the ref impl (CPython) uses reference counting, as a GC language? If yes, you have a better idea when GC will occur compared to non-
by throwaway2037 2y ago
Do you count Python, where the ref impl (CPython) uses reference counting, as a GC language? If yes, you have a better idea when GC will occur compared to non-deterministic GC like Java/JVM and C#/CLR.
- neonsunset 2y ago.NET has a few runtime knobs to control GC behavior at runtime: GC.TryStartNoGCRegion - https://learn.microsoft.com/en-us/dotnet/api/system.gc.trystartnogcregion https://learn.microsoft.com/en-us/dotnet/api/system.gc.tryst... GCSettings.LatencyMode - https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/latency https://learn.microsoft.com/en-us/dotnet/standard/garbage-co... The latter is what Osu! uses when you load and start playing a map, to sustain 1000hz game loop. Well, it also avoids allocations within it like fire but it's going to apply to any non-soft realtime system.