Get_node() optimization


#1

In unity there is a GetComponent<>() method which is not a good idea to use every frame. I was wondering is it a bad idea to use get_node() in _update() function or would it be better to get all nodes to variables in _ready() function like in Unity?


#2

In the official Godot tutorial (the FPS one, at least) this is how they do it. They create a public variable which they populate in _ready.