benreid24 / BLIB

Small organized collection of common code I have accumulated over the years that has amassed into a proper 2d game engine
1 stars 0 forks source link

Implement StaticQueue datastructure #143

Closed benreid24 closed 1 year ago

benreid24 commented 1 year ago

Queue interface but operates with a fixed size memory buffer under the hood. Keep track of head and tail positions for push/pop/front/back. Avoids memory allocations. For use in new ECS for entity id reuse.