Merge branch 'vulkan_amd_fixes' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-vulkan_amd_fixes

This commit is contained in:
Wojtek Figat
2024-06-17 21:49:00 +02:00

View File

@@ -292,7 +292,7 @@ DescriptorPoolSetContainerVulkan* DescriptorPoolsManagerVulkan::AcquirePoolSetCo
ScopeLock lock(_locker); ScopeLock lock(_locker);
for (auto* poolSet : _poolSets) for (auto* poolSet : _poolSets)
{ {
if (poolSet->Refs == 0) if (poolSet->Refs == 0 && Engine::FrameCount - poolSet->LastFrameUsed > VULKAN_RESOURCE_DELETE_SAFE_FRAMES_COUNT)
{ {
poolSet->LastFrameUsed = Engine::FrameCount; poolSet->LastFrameUsed = Engine::FrameCount;
poolSet->Reset(); poolSet->Reset();