pub enum ChunkCacheHint {
NormalMode,
UndoMode,
}Expand description
A performance/caching hint which determines how REAPER internally gets or sets a chunk.
Has implications on both performance and chunk content.
Variants§
NormalMode
This takes longer but is the best choice for most situations.
UndoMode
This can be faster but has some drawbacks.
The following happens when using this mode:
- When getting a chunk, then FX configurations are cached, e.g. if the plug-in hasn’t recently notified REAPER of a parameter change, the last configuration state is returned (which is faster). The downside is if the plug-in doesn’t properly report its state as having changed, one wouldn’t get the latest version.
- When setting a chunk, envelope lane sizes will not be updated from the configuration state.
- The format in which FX GUIDs are encoded is slightly different in this mode (to facilitate more efficient re-use of existing plug-in instances).
- The logic in saving the event data for pooled MIDI items is slightly different (in undo mode only one of the items in the pool will encode, in normal mode the first instance in the chunk will get the data).
Trait Implementations§
Source§impl Clone for ChunkCacheHint
impl Clone for ChunkCacheHint
Source§fn clone(&self) -> ChunkCacheHint
fn clone(&self) -> ChunkCacheHint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkCacheHint
impl Debug for ChunkCacheHint
Source§impl Hash for ChunkCacheHint
impl Hash for ChunkCacheHint
Source§impl PartialEq for ChunkCacheHint
impl PartialEq for ChunkCacheHint
impl Copy for ChunkCacheHint
impl Eq for ChunkCacheHint
impl StructuralPartialEq for ChunkCacheHint
Auto Trait Implementations§
impl Freeze for ChunkCacheHint
impl RefUnwindSafe for ChunkCacheHint
impl Send for ChunkCacheHint
impl Sync for ChunkCacheHint
impl Unpin for ChunkCacheHint
impl UnwindSafe for ChunkCacheHint
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
Mutably borrows from an owned value. Read more