Tag: Memory & Garbage Collection
All the articles with the tag "Memory & Garbage Collection".
Out of Memory Crashes on Mobile: What Is the True Culprit?
Mobile games vanishing abruptly with zero exception logs: How iOS Jetsam and Android LowMemoryKiller terminate apps, distinguishing Native from Managed memory, and practical diagnosis.
Why Doesn't Mobile Game RAM Decrease After Garbage Collection?
Profiler confirms garbage collection succeeded yet total mobile RAM never drops: The non-compacting nature of Boehm GC, High-Water Mark retention, and heap fragmentation.
Incremental GC in Unity: Does It Truly Eliminate Frame Drops and Stutter?
Enabling Incremental GC splits sweep phases into slices, yet gameplay still stutters: The limits of time slicing, allocation pacing spikes, and why zero-alloc design remains essential.
1 KB Per Frame, 3.6 MB Per Minute at 60 FPS: How Much Memory Are Your Strings Trashing?
Allocating 1KB per frame seems harmless until 60 FPS piles up megabytes of garbage: The StringBuilder.ToString() UI trap and zero-alloc string formatting techniques.
Using Structs to Avoid GC Alloc: Are We Actually Flooding the Profiler with Hidden Garbage?
Switching from Class to Struct to avoid GC spikes often triggers hidden boxing allocations: Interface casting traps, virtual dispatch pitfalls, and zero-alloc generic constraints in C#.
No 'new' Keyword in Code, Yet Profiler Reports GC Alloc: Dissecting 4 Hidden Allocation Traps in Unity
Zero 'new' keywords in code yet Profiler reports constant GC Allocations: 4 hidden heap culprits—struct boxing, lambda closures, LINQ execution, and string formatting—with zero-alloc solutions.