From 0c10f47e85cc1f80b3f56da7b6ae38d78d4f3f54 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 26 Jan 2021 00:27:36 +0300 Subject: [PATCH] rsx: Lower cache block length to 256 pages - Drastically lowers time wasted iterating blocks when many small objects are present --- rpcs3/Emu/RSX/Common/texture_cache_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/texture_cache_utils.h b/rpcs3/Emu/RSX/Common/texture_cache_utils.h index 3c14669156..613c7639f8 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache_utils.h +++ b/rpcs3/Emu/RSX/Common/texture_cache_utils.h @@ -459,7 +459,7 @@ namespace rsx class ranged_storage { public: - static constexpr u32 block_size = 0x1000000; + static constexpr u32 block_size = 0x100000; static_assert(block_size % 4096u == 0, "block_size must be a multiple of the page size"); static constexpr u32 num_blocks = u32{0x100000000ull / block_size}; static_assert((num_blocks > 0) && (u64{num_blocks} *block_size == 0x100000000ull), "Invalid block_size/num_blocks");