From 37f947b57f36afc93ac8126561855d2b1fbc3597 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Thu, 29 Oct 2026 20:17:00 -0700 Subject: [PATCH] increase default heap size for nabla --- src/spice2x/avs/core.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/spice2x/avs/core.cpp b/src/spice2x/avs/core.cpp index 1557187c..d8567be9 100644 --- a/src/spice2x/avs/core.cpp +++ b/src/spice2x/avs/core.cpp @@ -1,11 +1,14 @@ #include "core.h" +#include +#include #include #include #include #include +#include "avs/game.h" #include "external/robin_hood.h" #include "games/popn/popn.h" #include "launcher/logger.h" @@ -1181,6 +1184,18 @@ namespace avs { return; } +#ifdef SPICE64 + // nabla increased heap size a few months into service (June 2026?) + if (dll_name == "soundvoltex.dll" && + avs::game::is_ext(2025121501, INT_MAX)) { + auto old_size = HEAP_SIZE; + HEAP_SIZE = 0x18000000; + DEFAULT_HEAP_SIZE_SET = true; + log_info("avs-core", "updated heap size: {} -> {} (nabla)", old_size, avs::core::HEAP_SIZE); + return; + } +#endif + // hack, both hello! popn and popn hc using popn.dll if (games::popn::is_pikapika_model()) { auto old_size = HEAP_SIZE;