mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
Skip BufferCache tickframe with no channel state set
This commit is contained in:
parent
810d19b6be
commit
661375a222
1 changed files with 5 additions and 1 deletions
|
@ -63,8 +63,12 @@ void BufferCache<P>::RunGarbageCollector() {
|
||||||
|
|
||||||
template <class P>
|
template <class P>
|
||||||
void BufferCache<P>::TickFrame() {
|
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(),
|
const u32 hits = std::reduce(channel_state->uniform_cache_hits.begin(),
|
||||||
channel_state->uniform_cache_hits.end());
|
channel_state->uniform_cache_hits.end());
|
||||||
const u32 shots = std::reduce(channel_state->uniform_cache_shots.begin(),
|
const u32 shots = std::reduce(channel_state->uniform_cache_shots.begin(),
|
||||||
|
|
Loading…
Reference in a new issue