TheSuperHackers / GeneralsGamePatch

Community Patch to fix and improve original Generals Zero Hour 1.04
Other
55 stars 19 forks source link

Game client lags significantly when AI units try to find waypoints on large maps #531

Open xezon opened 2 years ago

xezon commented 2 years ago

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

Units clogging and causing lags: shot_20211007_183248_3

xezon commented 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.

xezon commented 1 year ago

PredatoR

Twilight flame has wrongly set waypoint paths. That's a big reason why units get stuck near the cliffs.

ImTimK commented 1 year ago

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.

xezon commented 1 year ago

Stalls also occur on tricky path finding, such as Dozer trying to drive into box.

https://github.com/TheSuperHackers/GeneralsGamePatch/assets/4720891/03198506-45c9-4e64-8f5e-b2fbe5b56678