beyond-all-reason / beyond-all-reason/RecoilEngine

2025.04.10 QTPFS Spring.RequestPath is much slower on huge maps

Open
#2,391 6 comments 0 reactions 1 assignee Claimed by @lostsquirrel1 View on GitHub
Dominant language
C++
Stars
679
Forks
290
Avg merge
3d 2h
Merged PRs (30d)
40

Description

ZK has significant performance stutters (freezes on the order of a second) when run with the inbuilt Lua AI on GargantuanFieldsOfIsis. There aren't any issues when the previous pathfinder is used, or when the body of this function is replaced with `return true`: https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaRules/Utilities/isTargetReachable.lua

- Setup a local game with four CAIs on each team (called Legacy AI in the lobby)
- Use the map https://zero-k.info/Maps/Detail/30351

Obviously this is an edge case, but it does stem from a real issue that a player had within a few days of the engine switch. More importantly, it serves as an easily reproduced performance issue, which may indicate a ubiquitous performance issue that would otherwise be hard to measure.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.