Open xezon opened 2 years ago
I tried to locate origin of performance issue in profiler, but have not been able to get clean call stacks due the lack of working pdb file.
PredatoR
Twilight flame has wrongly set waypoint paths. That's a big reason why units get stuck near the cliffs.
Well it has nothing to do with AI armies, because you can cause this lag yourself aswell as a player on TF. What Predator said is more likely, or it's the waypoint system in general.
Stalls also occur on tricky path finding, such as Dozer trying to drive into box.
Game client lags significantly when AI units try to find waypoints on large maps. Easily reproducible on Twilight Flame map by placing a hard AI on top and player on bottom. AI will send units, piles them up on the cliffs, and cause lag spikes.
Explanation of issue from Map Creator perspective:
Replay file with lags: ai_pathfinding_lag.zip
Game Room setup:![shot_20211007_181933_2](https://user-images.githubusercontent.com/4720891/136611365-145ef03d-0198-4f10-8952-e7cb8a3920ff.jpg)
Units clogging and causing lags:![shot_20211007_183248_3](https://user-images.githubusercontent.com/4720891/136611411-7d92ee3c-9eb5-4536-838a-4893542878b9.jpg)