mimalloc fixes crashes and RAM
Switching from system Scudo to mimalloc fixes out-of-memory crashes, lowers RAM usage by 2GB, and improves performance on Android.
- Switching the allocator from Scudo to mimalloc resolved allocation crashes and reduced RAM usage by roughly 2GB
- Scudo reserves significant memory upfront for launched apps, while mimalloc acts like standard memory and prevents out-of-memory errors on large lists
- Tree shadow displacement issues are likely depth_clamp related and can be tested using Freedreno drivers or ANGLE with Freedreno
- Freedreno provided approximately 8 FPS higher performance compared to running with the default device driver alone


