diff --git a/gb-vst/src/lib.rs b/gb-vst/src/lib.rs index cc194b8..ff79065 100644 --- a/gb-vst/src/lib.rs +++ b/gb-vst/src/lib.rs @@ -32,7 +32,7 @@ pub struct GameboyEmu { type FrameReceiver = Mutex>>>; type JoypadSender = Mutex>>; -const FRAMES_TO_BUFFER: usize = 3; +const FRAMES_TO_BUFFER: usize = 1; impl Plugin for GameboyEmu { const NAME: &'static str = "Gameboy"; @@ -86,6 +86,7 @@ impl Plugin for GameboyEmu { } } } + vars.emulator_core.run_until_buffer_full(); } ProcessStatus::KeepAlive }