Browse Source
Merge pull request #10452 from liamwhite/ibgc
video_core: don't garbage collect during configuration
pull/15/merge
Fernando S
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
0 additions and
6 deletions
-
src/video_core/texture_cache/texture_cache.h
-
src/video_core/texture_cache/texture_cache_base.h
|
|
|
@ -139,7 +139,6 @@ void TextureCache<P>::TickFrame() { |
|
|
|
TickAsyncDecode(); |
|
|
|
|
|
|
|
runtime.TickFrame(); |
|
|
|
critical_gc = 0; |
|
|
|
++frame_tick; |
|
|
|
|
|
|
|
if constexpr (IMPLEMENTS_ASYNC_DOWNLOADS) { |
|
|
|
@ -1885,10 +1884,6 @@ void TextureCache<P>::RegisterImage(ImageId image_id) { |
|
|
|
tentative_size = EstimatedDecompressedSize(tentative_size, image.info.format); |
|
|
|
} |
|
|
|
total_used_memory += Common::AlignUp(tentative_size, 1024); |
|
|
|
if (total_used_memory > critical_memory && critical_gc < GC_EMERGENCY_COUNTS) { |
|
|
|
RunGarbageCollector(); |
|
|
|
critical_gc++; |
|
|
|
} |
|
|
|
image.lru_index = lru_cache.Insert(image_id, frame_tick); |
|
|
|
|
|
|
|
ForEachGPUPage(image.gpu_addr, image.guest_size_bytes, [this, image_id](u64 page) { |
|
|
|
|
|
|
|
@ -427,7 +427,6 @@ private: |
|
|
|
u64 minimum_memory; |
|
|
|
u64 expected_memory; |
|
|
|
u64 critical_memory; |
|
|
|
size_t critical_gc; |
|
|
|
|
|
|
|
struct BufferDownload { |
|
|
|
GPUVAddr address; |
|
|
|
|