- Edited
As the original post (https://forum.godotengine.org/t/gdscript-getter-and-setter-functions-performance/65341) got no answers, I wonder if someone here has an opinion or idea on this topic?
TLDR:
Using set/get is faster than setting the property directly:
set_position(Vector2(100, 150)) # is faster
position = Vector2(100, 150)
Why is it faster?
Is it always faster?
Why does the autocomplete not suggest get/set functions?