pub enum RenderPolicy {
Eager,
Lazy,
None,
}Expand description
What the pool does with audition audio.
Renders are the engine’s only expensive artifact and its bulkiest one: at
the default phrase a single audition buffer is ~565 KB of f32, and a full
pool of them is tens of megabytes of wasm heap — resident forever, for
audio the user will mostly never ask to hear. But φ, not audio, is what
the pool exists to hold, and auracle_features::render_playback can
reproduce any buffer bit-identically from the term. So retention is a
policy, not a structural requirement.
Variants§
Eager
Materialize every candidate’s buffer at admission and keep it for the lifetime of the candidate. Fastest audition, largest footprint.
Lazy
Materialize on Engine::render_of, keeping the most recently
auditioned SessionConfig::audio_cache buffers and dropping the
rest. A cold audition costs one render.
None
Never keep audio. Headless callers (tests, learn_synthetic) never
audition anything, and this is what they should pay.
Trait Implementations§
Source§impl Clone for RenderPolicy
impl Clone for RenderPolicy
Source§fn clone(&self) -> RenderPolicy
fn clone(&self) -> RenderPolicy
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 RenderPolicy
impl Debug for RenderPolicy
Source§impl Default for RenderPolicy
impl Default for RenderPolicy
Source§fn default() -> RenderPolicy
fn default() -> RenderPolicy
Source§impl PartialEq for RenderPolicy
impl PartialEq for RenderPolicy
Source§fn eq(&self, other: &RenderPolicy) -> bool
fn eq(&self, other: &RenderPolicy) -> bool
self and other values to be equal, and is used by ==.