Unity3dAsyncAwaitUtil
Unity3dAsyncAwaitUtil copied to clipboard
Time.timeScale = 0 prevents UnitySynchronizationContext.Post
I've created this as an issue with Unity, as it is to do with their implementation of the SynchronizationContext
; but it appears setting Time.timeScale = 0f
delays the continuations being run on Unity's thread until it is increased above 0
.
We found this while using the provided new WaitForUpdate
/ Awaiters.NextFrame
from a background task.
Unity Ticket: 1057404
I'm surprised wait for next frame slows down with the timescale.
Not surprised about update slowing and stopping though.