From 36f11d692acd2272c4b15b34a3753f565310a074 Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 25 Nov 2020 18:20:44 -0800 Subject: DeviceContextVkImpl: removed duplicate m_NumCommandsToFlush that was incorrectly used insted of the base class member causing too many flushes. Increased NumCommandsToFlushCmdList to 2048. --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 41fd8210..816d8194 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -2070,7 +2070,7 @@ struct EngineD3D12CreateInfo DILIGENT_DERIVE(EngineCreateInfo) /// Number of commands to flush the command list. Only draw/dispatch commands count /// towards the limit. Command lists are only flushed when pipeline state is changed /// or when backbuffer is presented. - Uint32 NumCommandsToFlushCmdList DEFAULT_INITIALIZER(256); + Uint32 NumCommandsToFlushCmdList DEFAULT_INITIALIZER(2048); /// A device context uses dynamic heap when it needs to allocate temporary /// CPU-accessible memory to update a resource via IDeviceContext::UpdateBuffer() or @@ -2172,7 +2172,7 @@ struct EngineVkCreateInfo DILIGENT_DERIVE(EngineCreateInfo) /// Number of commands to flush the command buffer. Only draw/dispatch commands count /// towards the limit. Command buffers are only flushed when pipeline state is changed /// or when backbuffer is presented. - Uint32 NumCommandsToFlushCmdBuffer DEFAULT_INITIALIZER(256); + Uint32 NumCommandsToFlushCmdBuffer DEFAULT_INITIALIZER(2048); /// Size of the main descriptor pool that is used to allocate descriptor sets /// for static and mutable variables. If allocation from the current pool fails, -- cgit v1.2.3