pub enum SampleBudget {
Live,
Offline,
}Expand description
Which of a tier’s two sample ceilings this renderer resolves against (ADR-0140).
The law is the same either way — a budget is
clamp(round(anchor * target_px / REFERENCE_PX), anchor, ceiling) — and this
picks the ceiling. It is a construction choice and never a per-frame one:
the ceiling is also the allocation, so changing it means rebuilding the
scene.
Variants§
Live
Frame-time bound: a window, the plugin’s host surface, and every capture path — a still, a filmstrip, a report, the golden and sanity suites.
A capture takes this one even though it has no deadline either, and
that is deliberate rather than an oversight: the offline ceiling is a
larger allocation, and AttractorScene::seed’s scatter is a function of
how many particles were asked for, so handing a capture path the offline
ceiling would move every committed baseline without moving a single
resolved count.
Offline
Memory bound: shot --render, which walks a clip end to end with dt
injected and answers to no display.
Trait Implementations§
Source§impl Clone for SampleBudget
impl Clone for SampleBudget
Source§fn clone(&self) -> SampleBudget
fn clone(&self) -> SampleBudget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SampleBudget
impl Debug for SampleBudget
Source§impl Default for SampleBudget
impl Default for SampleBudget
Source§fn default() -> SampleBudget
fn default() -> SampleBudget
Source§impl PartialEq for SampleBudget
impl PartialEq for SampleBudget
Source§fn eq(&self, other: &SampleBudget) -> bool
fn eq(&self, other: &SampleBudget) -> bool
self and other values to be equal, and is used by ==.impl Copy for SampleBudget
impl Eq for SampleBudget
impl StructuralPartialEq for SampleBudget
Auto Trait Implementations§
impl Freeze for SampleBudget
impl RefUnwindSafe for SampleBudget
impl Send for SampleBudget
impl Sync for SampleBudget
impl Unpin for SampleBudget
impl UnsafeUnpin for SampleBudget
impl UnwindSafe for SampleBudget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.