Performance of coroutines in mobile

Is there any reference, or idea on the performance of coroutines in mobile platform? Is it a big cost to use a coroutine in a mobile game? If so, how can I get the same functionality without coroutines in code?

1 Answer

1

There’s no difference in performance to when you’re using coroutines in a PC or Mobile. Coroutines are basically a method that can be paused for the time of whatever yield instruction you pass to it.

The only difference you may see is that the impact of a bad implatation is a lot more noticeble in low end devices. Further more i would say that a wise implementation of coroutines will give you a performance boost especially on mobiles.

I great read to understand how to use coroutines is:

"delete the solution files" - how do I do that? "resetting the monodevelop executable as the target script editor" - did that, but nothing changed. It worked pretty good before, can't remember any majore bugs. And it still works with projects from previous versions of Unity, only the new ones are a problem.