this is a bump allocator, it doesn’t really have any overhead. It’s just updating a number in a reserved contiguous array that exists for the entire duration of the app. Resetting the allocation per frame just sets the bump value to 0.

This is in the context of a non-gc language like rust or C, so it doesn’t apply to java/kotlin gamedev.

Reply to this note

Please Login to reply.

Discussion

I use c# and unity

so yeah same thing

Sounds like a singleton of sorts? Usually set up for static variables you want to persist across scenes