Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
EventQueue.h File Reference

Defines a lightweight fixed-capacity queue for storing and processing frame events in Raven. More...

#include "Raven/Events/Event.h"
#include "Raven/Core/Base.h"
#include <array>

Classes

struct  Raven::EventQueue
 Fixed-size, frame-based event queue. More...

Namespaces

namespace  Raven

Variables

constexpr u32 Raven::MaxEventsPerFrame = 128
 Maximum number of events that can be queued per frame.

Detailed Description

Defines a lightweight fixed-capacity queue for storing and processing frame events in Raven.

Author
PhilikusHD

The EventQueue provides a contiguous, cache-friendly buffer for engine events. It supports fast insertion and constant-time clearing, intended to hold transient per-frame events such as input and window messages.

The queue has a fixed maximum capacity to avoid dynamic allocations and guarantee predictable performance characteristics per frame.