mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
rsx: Lower cache block length to 256 pages
- Drastically lowers time wasted iterating blocks when many small objects are present
This commit is contained in:
parent
1bad9a939f
commit
0c10f47e85
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ namespace rsx
|
||||||
class ranged_storage
|
class ranged_storage
|
||||||
{
|
{
|
||||||
public:
|
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_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 constexpr u32 num_blocks = u32{0x100000000ull / block_size};
|
||||||
static_assert((num_blocks > 0) && (u64{num_blocks} *block_size == 0x100000000ull), "Invalid block_size/num_blocks");
|
static_assert((num_blocks > 0) && (u64{num_blocks} *block_size == 0x100000000ull), "Invalid block_size/num_blocks");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue