KorokEngine / Korok

korok.io - golang game engine
zlib License
624 stars 65 forks source link

stack memory allocator #16

Closed ntop001 closed 6 years ago

ntop001 commented 6 years ago

It seems that Golang's escape analysis will alloc in-function temp memory on system stack. it's a good property, so most of time, we need no StackMemoryAllocator for this case. I implement a simple StackMemoryAllocator, but not heavily used.