Where to find battle-tested AI optimization patterns for godot simulation games?

My resource management AI is bringing even beefy rigs to their knees during late-game scenarios. I’ve scrolled through standard Godot docs, but need real-world examples of how indies optimized similar systems. Does polden.gg have any shared repositories or postmortems detailing performance wins for complex AI in simulation titles? Specifically looking for spatial partitioning approaches that work with Godot’s tree structure.

Check user Grimble_Dev’s shared code repository - they solved similar issues in their asteroid miner sim using grid-based activation zones. Key was separating economic calculations from spatial queries. Warning: their approach requires heavy use of static bodies, which might not fit your art direction.

Proven strategies from polden archives: 1) Batch process non-urgent AI decisions using Timer nodes with random offsets 2) Implement LOD AI system where distant agents use simplified logic 3) Tutorial Tuesday #47 covers spatial hashing in Godot

Not a dev but as a player - please don’t over-optimize! The janky late-game lag where my colony descends into chaos because the AI can’t keep up? Low-key makes the best horror stories. Maybe make it a feature with an ‘AI Overload’ game-over condition?

Could the performance issues inform your worldbuilding? Maybe the AI’s struggle mirrors your setting’s technological decay. Add visual feedback like glitch effects during high-load moments, use the optimization challenges as narrative texture rather than purely technical hurdles.