diff options
| author | 2023-05-04 02:36:18 +0200 | |
|---|---|---|
| committer | 2023-05-07 23:46:12 +0200 | |
| commit | ab0c0a469c29900314847520f30d6edb914fa028 (patch) | |
| tree | 025e810bce98ec382441e33958f34aa8c0286340 | |
| parent | Settings: add option to enable / disable reactive flushing (diff) | |
| download | yuzu-ab0c0a469c29900314847520f30d6edb914fa028.tar.gz yuzu-ab0c0a469c29900314847520f30d6edb914fa028.tar.xz yuzu-ab0c0a469c29900314847520f30d6edb914fa028.zip | |
Query cache: stop updating pages as it's not affected by cpu writes
| -rw-r--r-- | src/video_core/query_cache.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.h index 941de95c1..1528cc1dd 100644 --- a/src/video_core/query_cache.h +++ b/src/video_core/query_cache.h | |||
| @@ -255,7 +255,6 @@ private: | |||
| 255 | if (!in_range(query)) { | 255 | if (!in_range(query)) { |
| 256 | continue; | 256 | continue; |
| 257 | } | 257 | } |
| 258 | rasterizer.UpdatePagesCachedCount(query.GetCpuAddr(), query.SizeInBytes(), -1); | ||
| 259 | AsyncJobId async_job_id = query.GetAsyncJob(); | 258 | AsyncJobId async_job_id = query.GetAsyncJob(); |
| 260 | auto flush_result = query.Flush(async); | 259 | auto flush_result = query.Flush(async); |
| 261 | if (async_job_id == NULL_ASYNC_JOB_ID) { | 260 | if (async_job_id == NULL_ASYNC_JOB_ID) { |
| @@ -273,7 +272,6 @@ private: | |||
| 273 | 272 | ||
| 274 | /// Registers the passed parameters as cached and returns a pointer to the stored cached query. | 273 | /// Registers the passed parameters as cached and returns a pointer to the stored cached query. |
| 275 | CachedQuery* Register(VideoCore::QueryType type, VAddr cpu_addr, u8* host_ptr, bool timestamp) { | 274 | CachedQuery* Register(VideoCore::QueryType type, VAddr cpu_addr, u8* host_ptr, bool timestamp) { |
| 276 | rasterizer.UpdatePagesCachedCount(cpu_addr, CachedQuery::SizeInBytes(timestamp), 1); | ||
| 277 | const u64 page = static_cast<u64>(cpu_addr) >> YUZU_PAGEBITS; | 275 | const u64 page = static_cast<u64>(cpu_addr) >> YUZU_PAGEBITS; |
| 278 | return &cached_queries[page].emplace_back(static_cast<QueryCache&>(*this), type, cpu_addr, | 276 | return &cached_queries[page].emplace_back(static_cast<QueryCache&>(*this), type, cpu_addr, |
| 279 | host_ptr); | 277 | host_ptr); |