Skip to main content

MAX_CAPTURE_DIM

Constant MAX_CAPTURE_DIM 

Source
pub(crate) const MAX_CAPTURE_DIM: i32 = 16384;
Expand description

Upper bounds for consumer-supplied capture geometry: keeps a hostile or buggy setting from turning into a multi-GB vec![] allocation that would abort the process. 16384 covers every real display wall; the fps/scale bounds keep timing math finite and sane.