Ring buffer is a data structure which is cache-friendly implementation of queues. Without using any data structure which has a dynamic storage size such as Lists , you can enqueue , dequeue elements with this data structure.For more information about this data structure you can go to: https://gameprogrammingpatterns.com/event-queue.html