From a3f682fc5a91cc96d70863279d8dda3e75bd136a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 13 Mar 2022 13:34:14 -0700 Subject: [PATCH] softgpu: Reduce memory usage on 32-bit. --- GPU/Software/BinManager.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GPU/Software/BinManager.h b/GPU/Software/BinManager.h index cffa8d2327..44ae81e2b2 100644 --- a/GPU/Software/BinManager.h +++ b/GPU/Software/BinManager.h @@ -216,7 +216,12 @@ public: } protected: +#if PPSSPP_ARCH(32BIT) + // Use less memory and less address space. We're unlikely to have 32 cores on a 32-bit CPU. + static constexpr int MAX_POSSIBLE_TASKS = 16; +#else static constexpr int MAX_POSSIBLE_TASKS = 64; +#endif // This is about 1MB of state data. static constexpr int QUEUED_STATES = 4096; // These are 1KB each, so half an MB.