summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-05-25 20:09:08 +0200
committerGitHub <noreply@github.com>2023-05-25 20:09:08 +0200
commit3c3830953acdebd586f8f0f6c378d1fcd55630f6 (patch)
treeb02b8957d070d3c0777b43dca08d0dd5fb3281b2 /src
parentMerge pull request #10450 from 521337/add-u-option (diff)
parentvideo_core: don't garbage collect during configuration (diff)
downloadyuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.tar
yuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.tar.gz
yuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.tar.bz2
yuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.tar.lz
yuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.tar.xz
yuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.tar.zst
yuzu-3c3830953acdebd586f8f0f6c378d1fcd55630f6.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/texture_cache.h5
-rw-r--r--src/video_core/texture_cache/texture_cache_base.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 31d754550..fe13cac93 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.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) {
diff --git a/src/video_core/texture_cache/texture_cache_base.h b/src/video_core/texture_cache/texture_cache_base.h
index 1a3308e2d..cc27286f7 100644
--- a/src/video_core/texture_cache/texture_cache_base.h
+++ b/src/video_core/texture_cache/texture_cache_base.h
@@ -427,7 +427,6 @@ private:
u64 minimum_memory;
u64 expected_memory;
u64 critical_memory;
- size_t critical_gc;
struct BufferDownload {
GPUVAddr address;