How to update lots of units AI in Godot efficiently : AI Queuing as an RTS Processing Method @nanotechgamedev
How to update lots of units AI in Godot efficiently : AI Queuing as an RTS Processing Method  @nanotechgamedev
Uploaded February 2024 | Updated November 2026, 3 hours ago
Whenever we start building AI, it's important to determine how frequently they will be updated, on this video using our RTS project I am going to show you why processing AI functions using a timer or frame is a bad idea, instead we are going to discuss how to implement a queue method, to cycle between all units in the game, this way we don't waste perfomance computing everything at the same time, but rather we run with just a few units per frame.

This ensures your AI code to run smoothly even with hundreds of units, the key is not updating all of them at once, but rather to limit this reaction by smaller quantities, so our perfomance can keep a smooth and stable experience.
How to update lots of units AI in Godot efficiently : AI Queuing as an RTS Processing MethodHow I made a Third Person Camera on Godot 4 (Part 1) : Coding From Scratch - Third Person SeriesRts in Godot Part 5 : Adding a Dragbox UI object for an Rts Project Made In Godot from ScratchRts in Godot Part 38 : Basic Tech Upgrade System For an Rts Project Made In Godot from ScratchRts in Godot Part 31 : Combat Basic System for an Rts Project Made In Godot from ScratchGodot Easy Inputs W/ Code Only - Godot 4 Tutorial on Actions and Input ManagementUVMap introduction for Beginners - Concept overview in Blender : UVUnwrapping & UV Map TutorialRts in Godot Part 23 : Grid System & Code Updates for an Rts Project Made In Godot from ScratchRts in Godot Part 19 : Factions and Resources & UI for an Rts Project Made In Godot from ScratchRts in Godot Part 6 : Simple Dragbox Selection for an Rts Project Made In Godot from ScratchRts in Godot Part 45 : UI Translations With BBCode Csv for an Rts Project Made In Godot from ScratchRts in Godot Part 34 : Refactor for Optimization Part1 For an Rts Project Made In Godot from Scratch
Nanotech Gamedev |

How to update lots of units AI in Godot efficiently : AI Queuing as an RTS Processing Method

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER