20 constexpr uint32_t MAX_LIGHTS = 256;
24 constexpr uint32_t CLUSTER_X = 32;
25 constexpr uint32_t CLUSTER_Y = 18;
26 constexpr uint32_t CLUSTER_Z = 24;
27 constexpr uint32_t MAX_LIGHTS_PER_CLUSTER = 64;
30 constexpr uint32_t MAX_SHADOW_CASTERS_2D = 6;
33 constexpr uint32_t MAX_SHADOW_CASTERS_CUBE = 2;
36 constexpr uint32_t NUM_CASCADES = 4;
40 constexpr float SHADOW_NEAR = 0.1f;
43 constexpr uint32_t DEFAULT_TICK_RATE = 64;
47 constexpr uint32_t MIN_TICK_RATE = 4;
48 constexpr uint32_t MAX_TICK_RATE = 480;
60 return ticksPerSecond < MIN_TICK_RATE ? MIN_TICK_RATE
61 : ticksPerSecond > MAX_TICK_RATE ? MAX_TICK_RATE
67 constexpr float MAX_FRAME_ACCUMULATOR = 0.25f;
70 1.0f /
static_cast<float>(MIN_TICK_RATE) <= MAX_FRAME_ACCUMULATOR,
71 "A step longer than the accumulator cap can never be consumed, "
72 "so the slowest allowed tick rate would never tick at all"
77 constexpr uint32_t MAX_PLAYERS_PER_GAME = 64;
88 return seats > MAX_PLAYERS_PER_GAME ? MAX_PLAYERS_PER_GAME : seats;