250 Coroutines in a heartbeat


Fired off 250 createclusters in a for loop selecting random colored balls. Each calling a completion handler that in turn fired off a Coroutine() that waited 5 secs then destroyed it's cluster.

You can see a ever so slight time lapse as they vanish one right after the other.

But hey not bad at all for 250 of them!

Lots of potential here.

PS. playing with this over and over did eventually disconnect the region, but not before I seen some weird shadow effects. That post will be separate.




Please sign in to leave a comment.