Thanks for playing
The pathfinding itself is unoptimized but it doesn't affect the units, just the buildings. Godot 4 tilemap navigation is very restricted so i had to built upon it with some scripting.
Not sure why are the soldiers lagging tho, I'll look at it, thanks!
The energy management was a bit tricky since I added the twist so all units consume energy just as well the buildings and since the value is returned always freshly calculated, that might affect it.