Question by
wyzaiddz · Apr 28, 2019 at 10:04 PM ·
coroutinelagwaitforseconds
How to reduce lag in coroutines - specifically WaitForSeconds()?
This is intended as more of a general question, but I am including two screenshots for my specific circumstance.
So, I have constructed my first game stage, but as it turns out I get massive lag - from 300ms up to 2000ms.
If I'm reading the Profiler correctly, the offending part is my animation script that's doing quite literally nothing.
What's the best way to replace the functionality of "WaitForSeconds" or to eliminate the lag?
Comment
Answer by wyzaiddz · May 07, 2019 at 04:15 PM
For now I have simply avoided using them altogether. Replaced every coroutine with a normal function called through Update(). Seriously, though. What's wrong with the wait command?