Skip to content

Memory leak upon swapchain recreation #1

Description

@krob64

As of right now it leaks several things when losing/acquiring focus and being resized. As far as i can tell, this is what is being leaked:

  • swapchain_data_t
    • Basically all of the Vk* stuff inside this struct. I realize this is weirdly structured. I have tried, in different ways, to decouple the unrelated fields (such as the images, render pass, the descriptor stuff, the sampler and the pipeline and so on) from the struct because all of this does not need to be recreated when the swapchain gets recreated, but each time it complained about fences not being set up and/or invalid descriptors.
  • krosshair_draw_t
    • buffers, this is collateral damage from the scuffed design in swapchain_data_t.
    • semaphores and the fence

this is all i can i think of right now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions