From e83ccf0539d765193945d2de0d88d9dc55c85aaf Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 25 Nov 2020 19:22:52 -0800 Subject: Updated core & samples (fixed premature flushes in VK) --- Projects/Asteroids/src/asteroids_DE.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Projects') diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp index 71f7c23..64fdc43 100644 --- a/Projects/Asteroids/src/asteroids_DE.cpp +++ b/Projects/Asteroids/src/asteroids_DE.cpp @@ -139,8 +139,8 @@ void Asteroids::InitDevice(HWND hWnd, RENDER_DEVICE_TYPE DevType) EngineD3D12CreateInfo EngineCI; EngineCI.NumDeferredContexts = mNumSubsets - 1; EngineCI.GPUDescriptorHeapDynamicSize[0] = 65536 * 4; - EngineCI.GPUDescriptorHeapSize[0] = 65536; // For mutable mode - EngineCI.NumCommandsToFlushCmdList = 1024; + EngineCI.GPUDescriptorHeapSize[0] = 65536; // For mutable mode + EngineCI.NumCommandsToFlushCmdList = UINT_MAX; // Never flush the context while recording commands # ifndef _DEBUG EngineCI.DynamicDescriptorAllocationChunkSize[0] = 8192; # endif @@ -160,8 +160,9 @@ void Asteroids::InitDevice(HWND hWnd, RENDER_DEVICE_TYPE DevType) case RENDER_DEVICE_TYPE_VULKAN: { EngineVkCreateInfo EngineCI; - EngineCI.NumDeferredContexts = mNumSubsets - 1; - EngineCI.DynamicHeapSize = 64 << 20; + EngineCI.NumDeferredContexts = mNumSubsets - 1; + EngineCI.DynamicHeapSize = 64 << 20; + EngineCI.NumCommandsToFlushCmdBuffer = UINT_MAX; // Never flush the context while recording commands # if ENGINE_DLL if (GetEngineFactoryVulkan == nullptr) GetEngineFactoryVulkan = LoadGraphicsEngineVk(); -- cgit v1.2.3