Unity3dAsyncAwaitUtil icon indicating copy to clipboard operation
Unity3dAsyncAwaitUtil copied to clipboard

Time.timeScale = 0 prevents UnitySynchronizationContext.Post

Open DonaldHLG opened this issue 6 years ago • 1 comments

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

DonaldHLG avatar Jul 06 '18 09:07 DonaldHLG

I'm surprised wait for next frame slows down with the timescale.

Not surprised about update slowing and stopping though.

StephenHodgson avatar Jul 06 '18 13:07 StephenHodgson