wgpu-native icon indicating copy to clipboard operation
wgpu-native copied to clipboard

Potential memory leak in DX12 backend on wgpu_queue_write_buffer

Open helikopterodaktyl opened this issue 4 years ago • 0 comments

It seems that DX12 backend is leaking some memory in wgpu_queue_write_buffer. The bigger the buffer data being uploaded, the faster the memory usage goes up. I don't know how this function works underneath, but it seems whether it makes an internal copy or the data to be sent or creates a buffer in local memory, that buffer doesn't get cleaned up afterwards.

I tried it with wgpu-native. I am not seeing this behavior with Vulkan backend.

helikopterodaktyl avatar Feb 21 '21 21:02 helikopterodaktyl