Skip to content

Commit

Permalink
vulkan: don't periodically clean up render pass objects.
Browse files Browse the repository at this point in the history
It's not needed.
  • Loading branch information
slime73 committed Jun 24, 2024
1 parent 35f20eb commit b16e1d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/modules/graphics/vulkan/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2224,8 +2224,6 @@ VkRenderPass Graphics::getRenderPass(RenderPassConfiguration &configuration)
renderPasses[configuration] = renderPass;
}

renderPassUsages[renderPass] = true;

return renderPass;
}

Expand Down Expand Up @@ -2643,7 +2641,6 @@ static void eraseUnusedObjects(

void Graphics::cleanupUnusedObjects()
{
eraseUnusedObjects(renderPasses, renderPassUsages, vkDestroyRenderPass, device);
eraseUnusedObjects(framebuffers, framebufferUsages, vkDestroyFramebuffer, device);
}

Expand Down
1 change: 0 additions & 1 deletion src/modules/graphics/vulkan/Graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ class Graphics final : public love::graphics::Graphics
VkPipelineCache pipelineCache = VK_NULL_HANDLE;
std::unordered_map<RenderPassConfiguration, VkRenderPass, RenderPassConfigurationHasher> renderPasses;
std::unordered_map<FramebufferConfiguration, VkFramebuffer, FramebufferConfigurationHasher> framebuffers;
std::unordered_map<VkRenderPass, bool> renderPassUsages;
std::unordered_map<VkFramebuffer, bool> framebufferUsages;
std::unordered_map<uint64, VkSampler> samplers;
VkCommandPool commandPool = VK_NULL_HANDLE;
Expand Down

0 comments on commit b16e1d6

Please sign in to comment.