Skip to main content

DEFAULT_RETENTION_MARGIN

Constant DEFAULT_RETENTION_MARGIN 

Source
pub const DEFAULT_RETENTION_MARGIN: f32 = 96.0;
Expand description

Default SceneView::retention_margin, in screen pixels.

96 px is what a very fast fling covers in one frame at 120 Hz (11 520 px/s), which is the quantity the margin has to beat: it exists so a card is woken while it is still off screen rather than on the frame it becomes visible.