A GameCube/Wii emulator and debugger written in Rust.
back to 64K for DSP drain, fixes more hissing. mimalloc for main launcher
Layle8b445b76fc00
diff --git a/Cargo.lock b/Cargo.lockindex e0c7ea2..717d3f0 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -2316,6 +2316,7 @@ dependencies = ["iced","iced_aw","image 0.1.0",+ "mimalloc","rfd","ringbuf","serde",diff --git a/crates/app/Cargo.toml b/crates/app/Cargo.tomlindex 0be30cd..f037597 100644--- a/crates/app/Cargo.toml+++ b/crates/app/Cargo.toml@@ -15,6 +15,7 @@ wgpu = "29.0.3"cpal = "0.17.3"ringbuf = "0.5.0"spin_sleep = "1.3.3"+mimalloc = { version = "0.1.50", default-features = false }iced = { git = "https://github.com/iced-rs/iced.git", rev = "0d12e964da8c3f0f7a02d3d731e3187eecfe5779", features = ["tokio", "advanced", "image"] }iced_aw = { git = "https://github.com/ioncodes/iced_aw.git", rev = "0d6fe5f62ea12bfbbc97bf7076cc6063acf23c3f", default-features = false, features = ["menu"] }tokio = { version = "1.52.3", features = ["rt-multi-thread", "fs", "macros", "sync"] }diff --git a/crates/app/src/main.rs b/crates/app/src/main.rsindex 84bf0e5..e28544c 100644--- a/crates/app/src/main.rs+++ b/crates/app/src/main.rs@@ -7,6 +7,9 @@ mod player;mod theme;mod widgets;+#[global_allocator]+static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;+use std::path::PathBuf;use clap::Parser;diff --git a/crates/gecko/src/flipper/dsp/regs.rs b/crates/gecko/src/flipper/dsp/regs.rsindex b3e28b7..661bff4 100644--- a/crates/gecko/src/flipper/dsp/regs.rs+++ b/crates/gecko/src/flipper/dsp/regs.rs@@ -184,7 +184,7 @@ impl<const SYSTEM: SystemId> MmioAccess<System<SYSTEM>> for MailboxToDspLo {// Based off of FFCC, thanks SpinningCube, zayd, JustinCase// TODO: WHAT THE FUCK KINDA NUMBER SHOULD I USE// used to be 64 * 1024 and worked well on many games...- sys.drain_dsp_synchronous(32 * 1024);+ sys.drain_dsp_synchronous(64 * 1024);crate::flipper::dsp::wake_dsp_scheduler::<SYSTEM>(sys);}}