pub const MAX_COMPOSITOR_SURFACES: usize = 4;
Expand description

The maximum number of compositor surfaces that are allowed per picture cache. This is an arbitrary number that should be enough for common cases, but low enough to prevent performance and memory usage drastically degrading in pathological cases.