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.
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.