2,285 Commits over 883 Days - 0.11cph!
Fix crash in benchmark scene
Apply rust style/formatting standards
Tidy up the NPC benchmark branch
Fix some critters being stuck in a flee loop (either nothing to flee from, or crab wanting to flee into water but being disallowed going into water), saves around 4% of ai time
Skip encounter timer and network check when possible, -3% npc time
Do not spawn particles on hidden NPC footsteps
Remove a/b testing checks left in by mistake, the batch is done at the end of frame and picked up later so hopefully can run during rendering
Client npc opti, batch ground snap traces, properly disable spine animator and tail animator when culled
Refine the hotfix, take twice as long to kill players around 15m
Revert naval scientist accuracy to how it was when they were introduced (ramps up with how long they see you, min time between hits between 0.5 and 4s)
Add note about an old bug other code relied on for a long time, too risky to fix without a bigger change (layer index tested against a layer mask in npc spawn code)
Have transitions declare their dependencies, and don't re-evaluate transitions unless their dependencies were marked dirty (dependencies are a bitmask in an array so it's very fast to check), -13% fsm time, -26% for livestock especially, behaviour is exactly the same as before
Polish seek, go faster to sniff item, target item properly even when dog is far, exclamation mark on compass as was specified on roadmap when dog finds something (placeholder icon)
Small opti pass, -5%, don't read transforms unless it's sure they are going to be used (root motion, trigger), make ancester transitions an array, make prepared persistent queue items an array for faster copy
Improve npc sense perf by 30%
Fix client pooling bug that caused npc procedural lookat distance culling to not work properly, fix look weight never going to 0 in lerp (so never being completely disabled)
Add container to dog harness to store items in, make setting public props on nav agent mark structs as stale
Improve npc benchmark by adding player bots to attack the npcs
Add dog playground scene to scene menu, add a pen in the gym for animators to examine dog run and idles on dummy dogs
Fix conflicts from syncing with head
Improve dog free roam, lean was too exagerated, remove turns on the spot, add idles on stops
Merge pull request #308 from Facepunch/npc_benchmark_setup
Remove AIBENCH from project settings
Put work queue npc benchmark code in a method
- Cache sense/encounter components everywhere possible in fsm
Make benchmark fail loudly when save can't be loaded (as it'll be non deterministic)
Setup deterministic procgen map with deterministic npcs for benchmark, found unexpected cost in NPCNetworking (cherry picked to main already)
Apply rust style guidelines
Remove unused dog code, re-use existing code where possible instead of duplicating behaviour
Improve seek, hook sniff walk anim, fix bug where dog would be confused when far away from the item to sniff, allow sniffing sleeping bags / player and animal corpses
Improve heel further, more responsive while keeping realistic accelerations and turns
Merge pull request #288 from Facepunch/npc_network_eye_perf_fix
Skip NPC network tick when no player is around, and only read the eye transform if look direction is networked
Merge pull request #210 from Facepunch/remove_unused_npc_code
Merge remote-tracking branch 'origin/main' into remove_unused_npc_code
Improve heel command, switch dog to use same speeds as players which can cause some sliding at low speeds
Merge pull request #181 from Facepunch/data_oriented_nav_agent
Fix scientists with a target not using the proper door search
Fix scientists aim being off after crouch hovering fix, replace generic look animator with bespoke solution for scientists
Merge pull request #169 from Facepunch/Livestock_animals
Fix car repel force not working when position is exactly on the animal