What would be faster if it's being called every frame?

solved, using distance.