From 55fbf68c8aaf9a14b7f4cc237830ca3cec965572 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:53:28 -0700 Subject: [PATCH] Better calculation for disc buffer space needed --- src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs index ec01cc7cf5..80206da5d9 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Sega/gpgx64/GPGX.cs @@ -38,7 +38,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx } // internally, the core caches disc sectors read into the invisible heap - var discBufferSize = lp.Discs.Sum(d => d.DiscData.Session1.LeadoutLBA * 2448 + d.DiscData.Session1.LeadoutLBA); + var discBufferSize = lp.Discs.Sum(d => d.DiscData.Session1.LeadoutLBA * (2352 + 96 + 2)); discBufferSize += 1024 - discBufferSize % 1024; _elf = new WaterboxHost(new WaterboxOptions