Speaking generally, I’d prefer the first option as long as ‘i’ is actually an index or other valid key. I’m not sure what the overhead is in godot, but in general you should avoid conditional statements when you have a direct access method like a key or index.
I’m running TrueNAS Scale and have nextcloud, pihole and jellyfin all running flawlessly as docker containers. They have a hardware compatibility list if you want to reduce/prevent flakeyness in your setup.
Took a walk and figured out my issue. I shouldn’t have used direction.x in the increments argument. move_toward figures that out for you.