mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 14:25:29 +03:00
Bail out early if the new pipeline key matches that of the current one
Prevents the transition cache of some pipelines from getting full of copies of itself in cases where an update happens redundantly.
This commit is contained in:
parent
3e971d4043
commit
5e862cf5f7
@ -667,6 +667,9 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
||||
}
|
||||
|
||||
Pipeline *Pipeline::LookupNext(const PackedPipelineState &packedState) {
|
||||
if (packedState == sourcePackedState)
|
||||
return this;
|
||||
|
||||
auto it{std::find_if(transitionCache.begin(), transitionCache.end(), [&packedState](auto pipeline) {
|
||||
if (pipeline && pipeline->sourcePackedState == packedState)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user