ok, thanks for your help
Just out of curiosity:
what if you will disable all the AI on the zombies will they still kill your fps ?
Here’s the link if you are interested.
so just the mesh an an animation?
No mesh, no animation, nothing to pull in any visual data from and have 60 empty characters on screen.
The result is 50 fps at 15-17ms on the gpu. NOW I’M EXTRA CONFUSED
Zombie - just a mesh and animation.
Without AI controller I meant
So I finally came back to this after a long ■■■ time and I’m at a point where I actually understand everything you said LOL.
Still working on this same game, but now my concern about this tick groups technique is how does this work in multiplayer if the players are all on different sides of the map? This is only culling the rendering of the AI and not the actual movement of them correct?
Yes, tick is not affected by rendering.
But the movement is affected by the tick-so the invisible bots will tick less but with greater delta time - it may make them to appear jagged.
But honestly, after all I just happened to reimplement everything, from NavMesh to CMC to have really decemt performance (without tick groups).
Here is a preview video lin:
I’m probably going to make a simplified version of cmc and move off of behavior trees as much as possible in favor of Utility AI as suggested by Tom Looman. Going to also see if I can whip up some sort of instancing for the skeletal meshes as well as all the other weird ideas I’ve got floating around in my head. I was looking at the world war z game and I thought well if they can make huge mobs I can do it too!
also ( this is a clean project for working on AI ) but I get 110-120 fps with the AI idle and when they’re all moving I get about 60 fps
Sadly I don’t get 120 FPS with non moving AI
my SkeletalMeshes takes too long to render
But movement wise can go up to 1000 AI with collision avoidance (in multithreaded case) and around 250 single threaded.
It still has a room for further optimization - but I just don’t need - since I need only around 100-150 AI