branchrust_reboot/main/naval_update/boat_ai_optimisationscancel
7 Commits over 0 Days - ∞cph!
Lower wander strength to stop them running into walls
New avoidance update interval convar
Codegen
Get BoatAI down from 4ms every frame (for 12 boats) to around .2 ms for the same 12
Seperate physics queries from the avoidance logic itself
Use cached physics results for a few frames instead of having to request fresh data every cycle
Swap all of the raycasting to run on jobs via RaycastCommands
Drop context resolution 12 -> 8
Still gives us plenty of data but saves 4 rays
Swap AIDriverUpdateAction InvokeRepeating to InvokeRandomized so we dont flood the thread
Run every 100ms rather than every frame