summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2022-01-28 18:30:01 -0500
committerGravatar GitHub2022-01-28 18:30:01 -0500
commitb00406c8e4b29a4745fbf2f03304f8a32d7b5de6 (patch)
tree490af2d37ad401ba3d9c7cb7ca4bef88480dc02f /src
parentMerge pull request #7786 from ameerj/vmnmx-sel (diff)
parentbuffer_cache: Reduce stream buffer allocations when expanding from the left (diff)
downloadyuzu-b00406c8e4b29a4745fbf2f03304f8a32d7b5de6.tar.gz
yuzu-b00406c8e4b29a4745fbf2f03304f8a32d7b5de6.tar.xz
yuzu-b00406c8e4b29a4745fbf2f03304f8a32d7b5de6.zip
Merge pull request #7788 from ameerj/stream-buffer-begin
buffer_cache: Reduce stream buffer allocations when expanding from the left
Diffstat (limited to 'src')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index 43bed63ac..048dba4f3 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -1474,6 +1474,8 @@ typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu
1474 // When this memory region has been joined a bunch of times, we assume it's being used 1474 // When this memory region has been joined a bunch of times, we assume it's being used
1475 // as a stream buffer. Increase the size to skip constantly recreating buffers. 1475 // as a stream buffer. Increase the size to skip constantly recreating buffers.
1476 has_stream_leap = true; 1476 has_stream_leap = true;
1477 begin -= PAGE_SIZE * 256;
1478 cpu_addr = begin;
1477 end += PAGE_SIZE * 256; 1479 end += PAGE_SIZE * 256;
1478 } 1480 }
1479 } 1481 }