How efficient is this algorithm?

Wouldn’t this work:

Besides that, if you worry about your paused game run one function slowly, you have much bigger issues than this :wink: