From 1819c2183f648605768fef36dc1370478c2505dc Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 1 Apr 2021 12:53:49 -0700 Subject: [PATCH] backend: x64: block_of_code: Double the total code size. (#595) - The current limits are being hit in yuzu with some games (e.g. newer updates of BotW and SSBU). - Increasing this fixes slow-downs in these games due to code being recompiled. --- src/backend/x64/block_of_code.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/x64/block_of_code.cpp b/src/backend/x64/block_of_code.cpp index bc3e627c..752ff7cc 100644 --- a/src/backend/x64/block_of_code.cpp +++ b/src/backend/x64/block_of_code.cpp @@ -44,8 +44,8 @@ const std::array BlockOfCode::ABI_PARAMS = {BlockOfCode::ABI_PA namespace { -constexpr size_t TOTAL_CODE_SIZE = 128 * 1024 * 1024; -constexpr size_t FAR_CODE_OFFSET = 100 * 1024 * 1024; +constexpr size_t TOTAL_CODE_SIZE = 256 * 1024 * 1024; +constexpr size_t FAR_CODE_OFFSET = 200 * 1024 * 1024; constexpr size_t CONSTANT_POOL_SIZE = 2 * 1024 * 1024; class CustomXbyakAllocator : public Xbyak::Allocator {