[Jaeger's Blog]

Recent Posts

Coroutines: A Million Stacks

published on
Can you have 1 million entities and let them all think with stackful coroutines and achieve acceptable frame rates? An unreasonable question, but is it possible? Obviously not and it’s easy to see why with a back-of-the-envelope calculation: 1 million entities * 1 MiB stack per coroutine = 1 TiB of memory My machine has 64 GiB of RAM, a respectable amount, but only 6.4% of the memory requirements just for these coroutine stacks. Read More...