Skip to main content

PreviousAllocation

Type Alias PreviousAllocation 

Source
pub type PreviousAllocation = Option<Vec<u16>>;
Expand description

Previous frame’s allocation, used as tie-breaker for temporal stability.

Pass None for the first frame or when no history is available. When provided, the rounding algorithm prefers allocations that minimize change from the previous frame, reducing visual jitter.

Aliased Type§

pub enum PreviousAllocation {
    None,
    Some(Vec<u16>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Vec<u16>)

Some value of type T.