News for hackers. Stuff that matters.
Re:C++ Coroutines Do Not Spark Joy by jbluepolarbear on Friday April 05, 2024 @09:39AM (#39942241)
Where you getting this information that tasks and IEnumerator can’t be used for games? I’ve been using Unity for 10 years and tasks and Ienumerators are used as coroutines all the time. Recently worked on Hello Kitty Island Adventure and almost all game logic goes through an async coroutine library. Most memory worries are in graphics and object overhead, not coroutine stack allocations.
Re:C++ Coroutines Do Not Spark Joy by jayd16 on Friday April 05, 2024 @11:03AM (#39943288)
I mean you don't want to use a Task for per frame work like and use a coroutine instead because tasks are pretty heap allocation heavy. When did I ever mention ienumerator?
Re:C++ Coroutines Do Not Spark Joy by jbluepolarbear on Friday April 05, 2024 @02:17PM (#39945388)
IEnumerator is how Unity implements coroutines.