Does framerate affect Coroutines?
We're working on a game and wanted to know if Coroutines and Invoked Methods get affected by the frame rate.
For example, if the game is chugging at 5 FPS, will Coroutines and Invoked Methods get affected by the frame rate? Or are Coroutines run in a separate thread or part of the engine, and aren't affected if the game suddenly lags in the graphics department?
Answer by cjdev · Oct 04, 2015 at 07:29 AM
Coroutines are run in the main thread, effectively they're just like timing something in Update with a counter variable. However, most of the arguments for coroutines are time-based not frame-rate based so while they will be under the effect of, and contribute to, the heavy processor load their callbacks will still be on time.
Just as additional source of information: The engine's execution order.
Your answer
Follow this Question
Related Questions
What to do for many comparison operations in foreach loop? 0 Answers
Transform search function only sporadically works?! 1 Answer
Using coroutine and texture array to randomly associate textures? 1 Answer
Update() function keeps running AFTER script is disabled... 1 Answer
deltaTime on fixedUpdate 1 Answer