Fix Vulkan descriptor sets pooling
This commit is contained in:
@@ -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 && Engine::FrameCount - poolSet->LastFrameUsed > VULKAN_RESOURCE_DELETE_SAFE_FRAMES_COUNT)
|
if (poolSet->Refs == 0 && Engine::FrameCount != poolSet->LastFrameUsed)
|
||||||
{
|
{
|
||||||
poolSet->LastFrameUsed = Engine::FrameCount;
|
poolSet->LastFrameUsed = Engine::FrameCount;
|
||||||
poolSet->Reset();
|
poolSet->Reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user