diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_base.h | 4 | ||||
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 2 | ||||
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index 18a3390c0..be2113f5a 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h | |||
| @@ -298,11 +298,11 @@ public: | |||
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | size_t getLRUID() const noexcept { | 300 | size_t getLRUID() const noexcept { |
| 301 | return lru_id; | 301 | return lru_id; |
| 302 | } | 302 | } |
| 303 | 303 | ||
| 304 | void setLRUID(size_t lru_id_) { | 304 | void setLRUID(size_t lru_id_) { |
| 305 | lru_id = lru_id_; | 305 | lru_id = lru_id_; |
| 306 | } | 306 | } |
| 307 | 307 | ||
| 308 | private: | 308 | private: |
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 617435968..7bfd57369 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h | |||
| @@ -78,7 +78,7 @@ class BufferCache { | |||
| 78 | 78 | ||
| 79 | static constexpr BufferId NULL_BUFFER_ID{0}; | 79 | static constexpr BufferId NULL_BUFFER_ID{0}; |
| 80 | 80 | ||
| 81 | static constexpr u64 EXPECTED_MEMORY = 256_MiB; | 81 | static constexpr u64 EXPECTED_MEMORY = 512_MiB; |
| 82 | static constexpr u64 CRITICAL_MEMORY = 1_GiB; | 82 | static constexpr u64 CRITICAL_MEMORY = 1_GiB; |
| 83 | 83 | ||
| 84 | using Maxwell = Tegra::Engines::Maxwell3D::Regs; | 84 | using Maxwell = Tegra::Engines::Maxwell3D::Regs; |
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index caf1949f2..24b809242 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -61,8 +61,8 @@ template <class P> | |||
| 61 | void TextureCache<P>::RunGarbageCollector() { | 61 | void TextureCache<P>::RunGarbageCollector() { |
| 62 | const bool high_priority_mode = total_used_memory >= expected_memory; | 62 | const bool high_priority_mode = total_used_memory >= expected_memory; |
| 63 | const bool aggressive_mode = total_used_memory >= critical_memory; | 63 | const bool aggressive_mode = total_used_memory >= critical_memory; |
| 64 | const u64 ticks_to_destroy = aggressive_mode ? 10ULL : high_priority_mode ? 50ULL : 100ULL; | 64 | const u64 ticks_to_destroy = aggressive_mode ? 10ULL : high_priority_mode ? 25ULL : 100ULL; |
| 65 | size_t num_iterations = aggressive_mode ? 10000 : (high_priority_mode ? 50 : 5); | 65 | size_t num_iterations = aggressive_mode ? 10000 : (high_priority_mode ? 100 : 5); |
| 66 | const auto clean_up = [this, &num_iterations, high_priority_mode](ImageId image_id) { | 66 | const auto clean_up = [this, &num_iterations, high_priority_mode](ImageId image_id) { |
| 67 | if (num_iterations == 0) { | 67 | if (num_iterations == 0) { |
| 68 | return true; | 68 | return true; |