diff options
author | bunnei <bunneidev@gmail.com> | 2023-05-30 23:42:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 23:42:12 +0200 |
commit | 05e38ee1494c04c58897d60286db465193b831fc (patch) | |
tree | d866e0b3a7ba33951035419bbee73e1f4360b52d /src/video_core/buffer_cache/buffer_cache.h | |
parent | Merge pull request #10504 from 12101111/rename-pagesize (diff) | |
parent | Skip BufferCache tickframe with no channel state set (diff) | |
download | yuzu-05e38ee1494c04c58897d60286db465193b831fc.tar yuzu-05e38ee1494c04c58897d60286db465193b831fc.tar.gz yuzu-05e38ee1494c04c58897d60286db465193b831fc.tar.bz2 yuzu-05e38ee1494c04c58897d60286db465193b831fc.tar.lz yuzu-05e38ee1494c04c58897d60286db465193b831fc.tar.xz yuzu-05e38ee1494c04c58897d60286db465193b831fc.tar.zst yuzu-05e38ee1494c04c58897d60286db465193b831fc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index c336be707..427afd5fc 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -63,8 +63,12 @@ void BufferCache<P>::RunGarbageCollector() { template <class P> void BufferCache<P>::TickFrame() { - // Calculate hits and shots and move hit bits to the right + // Homebrew console apps don't create or bind any channels, so this will be nullptr. + if (!channel_state) { + return; + } + // Calculate hits and shots and move hit bits to the right const u32 hits = std::reduce(channel_state->uniform_cache_hits.begin(), channel_state->uniform_cache_hits.end()); const u32 shots = std::reduce(channel_state->uniform_cache_shots.begin(), |