Zig heap space #2450
-
I've already seen the answer in wasm4, but using the FixedBufferAllocator is leading to OOM even though I've capped the amount of sprites of the type spawning allowed and free on destroy. Here is my code base for reference, but I'm observing OOM being traced. |
Beta Was this translation helpful? Give feedback.
Answered by
TheDrawingCoder-Gamer
Feb 5, 2024
Replies: 1 comment
-
Looking closer at the source, it only "frees" the memory if it's the last allocation you've made, meaning my code never actually frees. Working on porting over a buddy alloc impl. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheDrawingCoder-Gamer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking closer at the source, it only "frees" the memory if it's the last allocation you've made, meaning my code never actually frees. Working on porting over a buddy alloc impl.