Optimize shadow projections rendering contexts to collect draw call indices only (draw calls from main render list)

This commit is contained in:
Wojtek Figat
2022-11-03 19:59:56 +01:00
parent 996d38b61d
commit 183636289a
7 changed files with 128 additions and 46 deletions

View File

@@ -84,7 +84,7 @@ void SceneRendering::Draw(RenderContextBatch& renderContextBatch, DrawCategory c
else if (origin.IsZero() && frustumsCount == 1)
{
// Fast path for no origin shifting with a single context
auto& renderContext = renderContextBatch.Contexts[0];
RenderContext& renderContext = renderContextBatch.GetMainContext();
for (int32 i = 0; i < list.Count(); i++)
{
auto e = list.Get()[i];