Global Feed Post Login
Replying to Avatar jb55

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.

Avatar
S!ayer 4mo ago

I use c# and unity

Reply to this note

Please Login to reply.

Discussion

Avatar
jb55 4mo ago

so yeah same thing

Avatar
S!ayer 4mo ago

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

Thread collapsed
Thread collapsed