Browse Source
Merge pull request #7788 from ameerj/stream-buffer-begin
buffer_cache: Reduce stream buffer allocations when expanding from the left
pull/15/merge
Morph
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/video_core/buffer_cache/buffer_cache.h
|
|
@ -1474,6 +1474,8 @@ typename BufferCache<P>::OverlapResult BufferCache<P>::ResolveOverlaps(VAddr cpu |
|
|
// When this memory region has been joined a bunch of times, we assume it's being used |
|
|
// When this memory region has been joined a bunch of times, we assume it's being used |
|
|
// as a stream buffer. Increase the size to skip constantly recreating buffers. |
|
|
// as a stream buffer. Increase the size to skip constantly recreating buffers. |
|
|
has_stream_leap = true; |
|
|
has_stream_leap = true; |
|
|
|
|
|
begin -= PAGE_SIZE * 256; |
|
|
|
|
|
cpu_addr = begin; |
|
|
end += PAGE_SIZE * 256; |
|
|
end += PAGE_SIZE * 256; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|