From c996b348356a0960befc7efd28407c5138924c10 Mon Sep 17 00:00:00 2001 From: antonmic Date: Tue, 8 Jun 2021 23:13:40 -0700 Subject: [PATCH] Pass changes WIP: small optimization --- Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp | 1 - Gems/Atom/RPI/Code/Source/RPI.Public/Scene.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp b/Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp index 8e624abe13..4e565895e9 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp @@ -109,7 +109,6 @@ namespace AZ pipeline->m_rootPass->SetRenderPipeline(pipeline); // Manually create the pipeline so we can gather the view tags from it's passes - pipeline->m_rootPass->Reset(); pipeline->m_rootPass->Build(); pipeline->m_rootPass->Initialize(); pipeline->m_rootPass->OnInitializationFinished(); diff --git a/Gems/Atom/RPI/Code/Source/RPI.Public/Scene.cpp b/Gems/Atom/RPI/Code/Source/RPI.Public/Scene.cpp index 7e33750eb5..5f9ba38c88 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Public/Scene.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Public/Scene.cpp @@ -291,7 +291,6 @@ namespace AZ pipeline->OnAddedToScene(this); // Force to update the lookup table since adding render pipeline would effect any pipeline states created before pass system tick - AZ::RPI::PassSystemInterface::Get()->ProcessQueuedChanges(); RebuildPipelineStatesLookup(); AZ_Assert(!m_id.IsNull(), "RPI::Scene needs to have a valid uuid.");