4 ms·
.NET has a few runtime knobs to control GC behavior at runtime: GC.TryStartNoGCRegion - https://learn.microsoft.com/en-us/dotnet/api/system.gc.trystartnogcregi
by 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.