Start transition cache lookup with most recent one

This commit is contained in:
Billy Laws 2022-11-18 21:32:02 +00:00
parent 62c86b7690
commit ac85df7b7a

View File

@ -609,8 +609,10 @@ namespace skyline::gpu::interconnect::maxwell3d {
return false;
})};
if (it != transitionCache.end())
return *it;
if (it != transitionCache.end()) {
std::swap(*it, *transitionCache.begin());
return *transitionCache.begin();
}
return nullptr;
}