From b16e1d6e276fa2f0620ef59711502f2d894df2a7 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 24 Jun 2024 18:41:52 -0300 Subject: [PATCH] vulkan: don't periodically clean up render pass objects. It's not needed. --- src/modules/graphics/vulkan/Graphics.cpp | 3 --- src/modules/graphics/vulkan/Graphics.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/modules/graphics/vulkan/Graphics.cpp b/src/modules/graphics/vulkan/Graphics.cpp index 5f9ccb10b..5736188e8 100644 --- a/src/modules/graphics/vulkan/Graphics.cpp +++ b/src/modules/graphics/vulkan/Graphics.cpp @@ -2224,8 +2224,6 @@ VkRenderPass Graphics::getRenderPass(RenderPassConfiguration &configuration) renderPasses[configuration] = renderPass; } - renderPassUsages[renderPass] = true; - return renderPass; } @@ -2643,7 +2641,6 @@ static void eraseUnusedObjects( void Graphics::cleanupUnusedObjects() { - eraseUnusedObjects(renderPasses, renderPassUsages, vkDestroyRenderPass, device); eraseUnusedObjects(framebuffers, framebufferUsages, vkDestroyFramebuffer, device); } diff --git a/src/modules/graphics/vulkan/Graphics.h b/src/modules/graphics/vulkan/Graphics.h index 13dcbfd66..82687458e 100644 --- a/src/modules/graphics/vulkan/Graphics.h +++ b/src/modules/graphics/vulkan/Graphics.h @@ -372,7 +372,6 @@ class Graphics final : public love::graphics::Graphics VkPipelineCache pipelineCache = VK_NULL_HANDLE; std::unordered_map renderPasses; std::unordered_map framebuffers; - std::unordered_map renderPassUsages; std::unordered_map framebufferUsages; std::unordered_map samplers; VkCommandPool commandPool = VK_NULL_HANDLE;