branchrust_reboot/main/fix_duplicate_ocean_sim_datacancel
3 Commits over 0 Days - ∞cph!
Switch LoadNativeSimData() from reading into a managed array to reading into NativeArray so it doesn't affect heap watermark
Add FileEx.ReadAllBytesNative() that returns a NativeArray<byte> instead of byte[]
Fix the deep sea OceanSimulation loading a 2nd copy of the ocean sim data since they both read the same file from disk
- pass in NativeSimData from outside of OceanSimulation instead of reading it inside the constructor
- only dispose NativeSimData once when it's shared
- saves 80MB