Hi, I’ve been digging through some performance optimization for IOS. I’ve read that using Update should be avoided, use coroutines instead. So I’ve made a MainScript coroutine which executes most of my script, which is Invoked in my Start function. What is the perfect repeat rate for this coroutine to repeat itself, without input lag and without too much performance loss?
“Well the script is basically just checking some if statements and moving some objects around”
You should do that in Update.
End of story.
Basically the ONLY WAY to move something is in Update(), using Time.deltaTime
if you’re not familiar w/ Time.deltaTime, and moving things, ask a new question. Or check the doco page.