Optimize Color Grading LUT to be cached if unchanged from the previous frame

This commit is contained in:
Wojtek Figat
2025-08-01 23:16:57 +02:00
parent 0f81c64964
commit 5c5341e346
4 changed files with 55 additions and 15 deletions

View File

@@ -1447,7 +1447,6 @@ void GlobalSurfaceAtlasPass::RenderDebug(RenderContext& renderContext, GPUContex
auto colorGradingLUT = ColorGradingPass::Instance()->RenderLUT(renderContext);
EyeAdaptationPass::Instance()->Render(renderContext, tempBuffer);
PostProcessingPass::Instance()->Render(renderContext, tempBuffer, output, colorGradingLUT);
RenderTargetPool::Release(colorGradingLUT);
RenderTargetPool::Release(tempBuffer);
context->ResetRenderTarget();