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.
I use c# and unity
Please Login to reply.
so yeah same thing
Sounds like a singleton of sorts? Usually set up for static variables you want to persist across scenes