Files
OpenRA/OpenRA.Mods.Common
RoosterDragon 0d84804d81 Reduce lag spikes from SquadManagerBotModule.
Updating squads is the most expensive part of SquadManagerBotModule. It involves ticking the current squad state. This usually involves finding nearby enemies and evaluating the fuzzy state machine to decide whether to interact with those enemies. Since all the AI squads for a player get ordered on the same tick, this can result in a lag spike.

To reduce the impact, we'll spread out the updates over multiple ticks. This means overall all the AI squads will still be refreshed every interval, but it'll be a rolling update rather than all at once. By spreading out the updates we avoid a lag spike from the cumulative updates of all the squads. Now the lag spike is reduced to the worst any single squad update can incur.
2024-07-08 18:20:33 +03:00
..
2023-08-07 21:38:09 +02:00
2024-05-04 16:31:35 +02:00
2023-11-19 19:28:57 +02:00
2023-11-16 09:29:17 +02:00
2023-06-20 17:57:40 +02:00
2024-06-03 10:25:06 +02:00
2024-05-04 16:31:35 +02:00
2023-11-19 19:28:57 +02:00
2024-06-03 10:25:06 +02:00
2023-01-11 11:58:54 +02:00
2024-03-12 16:14:29 +02:00
2024-02-07 15:18:55 +02:00
2023-03-18 12:46:10 +02:00
2023-08-02 19:42:31 +03:00