Skip to content

Tutorial Issue - 36-recycling-command-buffers seems to have a memory leak when resizing the window #417

Description

@Eliott-Guignabaudet

At the end of this tutorial part, the line that frees the command buffers when destroying the swapchain is removed. However, in the recreate_swapchain method, we still create new command buffers and replace the old ones, without freeing them first.

I observed in Task Manager that my app's memory usage kept increasing when resizing the window. I tried removing the command buffer recreation from recreate_swapchain, and the issue seems to be fixed on my side.

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