From 615a1c56a3cad4c4d723203ed1ea6dc057b65b9c Mon Sep 17 00:00:00 2001 From: Tom Maenan Read Cutting Date: Sun, 23 Jun 2019 18:31:10 +0100 Subject: [PATCH] Move shadows to the async compute queue --- crest/Assets/Crest/Crest/Scripts/LodData/LodDataMgrShadow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crest/Assets/Crest/Crest/Scripts/LodData/LodDataMgrShadow.cs b/crest/Assets/Crest/Crest/Scripts/LodData/LodDataMgrShadow.cs index 1d26ff8ae..1429a4564 100644 --- a/crest/Assets/Crest/Crest/Scripts/LodData/LodDataMgrShadow.cs +++ b/crest/Assets/Crest/Crest/Scripts/LodData/LodDataMgrShadow.cs @@ -155,7 +155,7 @@ public override void UpdateLodData() { _bufCopyShadowMap = new CommandBuffer(); _bufCopyShadowMap.name = "Shadow data"; - _mainLight.AddCommandBuffer(LightEvent.BeforeScreenspaceMask, _bufCopyShadowMap); + _mainLight.AddCommandBufferAsync(LightEvent.BeforeScreenspaceMask, _bufCopyShadowMap, ComputeQueueType.Background); } else if (!s_processData && _bufCopyShadowMap != null) {