I have a castle building game where 50-100 units attack a castle, where the castle walls can fall. When the walls fall it may block paths, or open new paths. The castle wall sections use DynamicGridObstacle.
The units use RVO
I'm using layered grid graph
The castle wall sections will have tunnels, etc. so I need the different layers
The terrain is about 4K meters in size, but I clamped the nodes to 200x200 for testing just for now.
In my test scene, which only has one castle wall, terrain, and no units I was getting frame spikes.
I'm guessing I can't have everything I want?
Performance is paramount, as I can't have frame spikes during gameplay. I also need it so paths can be opened up -
blocking is less important as I can have rubble disappear, although I would prefer not to do that.
What is my best option? I can give up RVO without impacting gameplay too much. But I can't give up performance or the ability to open up holes in the castle wall.