branchrust_reboot/main/buoyancy_improvementscancel
11 Commits over 0 Days - ∞cph!
Add readonly container for ocean simulation data to make parallel use a bit more sane, it was previously just disabling all read/write restictions.
Fix native grid not having a non unique add method like the managed version.
Fix performance degradation over time in buoyancy batching from growing point arrays, this basically prevented buoyancy from sleeping.
Sub array all buffers to let them shrink back down.
Run ocean simulation GetHeights in parallel, 2x~ faster with 100 player boats.
Make NativeGrid cell size match the behaviour of the managed Grid<T>, fixes GetNode() fetching out of bounds nodes.
Use temp job allocators for deep water checks
Reimplement deep water checks in batched buoyancy
Implement water volume checks for batched buoyancy, adds NativeGrid<T> (and an untested parallel version for later).
Make waterinfo blittable.
Move most of buoyancy writeback into burst, add burst batch access for flow direction.
Make buoyancy write back 10x faster, still needs to be bursted. Fix warnings from temp allocs that weren't needed at all.