mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Significantly increase task queue capacity
This is needed to prevent parameter change events from being dropped.
This commit is contained in:
@@ -20,7 +20,9 @@ pub(crate) use self::macos::MacOSEventLoop as OsEventLoop;
|
||||
#[cfg(target_os = "windows")]
|
||||
pub(crate) use self::windows::WindowsEventLoop as OsEventLoop;
|
||||
|
||||
pub(crate) const TASK_QUEUE_CAPACITY: usize = 512;
|
||||
// This needs to be pretty high to make sure parameter change events don't get dropped when there's
|
||||
// lots of automation/modulation going on
|
||||
pub(crate) const TASK_QUEUE_CAPACITY: usize = 4096;
|
||||
|
||||
/// A trait describing the functionality of a platform-specific event loop that can execute tasks of
|
||||
/// type `T` in executor `E` on the operating system's main thread (if applicable). Posting a task
|
||||
|
||||
Reference in New Issue
Block a user