1
0
Fork 0

Significantly increase task queue capacity

This is needed to prevent parameter change events from being dropped.
This commit is contained in:
Robbert van der Helm 2023-01-11 14:51:22 +01:00
parent 08c6729ed1
commit 4e53d3a799

View file

@ -20,7 +20,9 @@ pub(crate) use self::macos::MacOSEventLoop as OsEventLoop;
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
pub(crate) use self::windows::WindowsEventLoop as OsEventLoop; 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 /// 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 /// type `T` in executor `E` on the operating system's main thread (if applicable). Posting a task