I'm still relatively new to C#/Unity but does anyone else think async/await is really harmful in games? Is it just me? (cc @kurtismcc )
Do you need to worry about concurrency though? Async can be single threaded right?
-
-
Async safety doesn’t just mean concurrent safety. An await that’s holding a lock still needs to be cancelled nicely.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Yes - Even if single-threaded, if it's a state machine with member variables: 1. I can clear/destruct the state if needed 2. I can find it to output in a debug tool 3. I know there is only one copy of it It's the fact that some program state is sort of hidden that bugs me.
-
I see. Yeh, that's fair. Full disclosure - I was wondering about async in game tech a few months ago so I wrote a little async game to test it.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.