ddui icon indicating copy to clipboard operation
ddui copied to clipboard

Better memory management

Open dd86k opened this issue 2 years ago • 0 comments

At the moment, the mu_Context stacks are all static memory buffers, so a multibyte POD structure really isn't fitted to be put on the stack (just had an issue with the demo having a 4MB struct on stack, poor MSVC).

While dynamically allocating memory in games is often frowned upon, I'm currently thinking what strategies I should employ (e.g., allocating enough at init).

  • [x] TODO: Fix current issue with context on stack and move it to heap (I'm at work)

dd86k avatar Oct 18 '22 15:10 dd86k