From ac85df7b7ac3d78446892c06352fd308653c65aa Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 18 Nov 2022 21:32:02 +0000 Subject: [PATCH] Start transition cache lookup with most recent one --- .../gpu/interconnect/maxwell_3d/pipeline_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_manager.cpp b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_manager.cpp index 418e1456..2daf4a26 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_manager.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_manager.cpp @@ -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; }