gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 551 forks source link

Memory leak on dx12 when drawing a simple triangle #3696

Closed Shaddaaa closed 3 years ago

Shaddaaa commented 3 years ago

Short info header:

I tried to update the code of a tutorial from version 0.6 to 0.7, which lead to memory leaks (~4MB/s) that have not been there in version 0.6. After some testing I found out, that switching backend from dx12 to vulkan fixes the memory leaks, so there seems to be a problem with the dx12 backend.

Steps to reproduce:

1. git clone https://github.com/Shaddaaa/gfx_hal_test
2. cd gfx_hal_test
3. git checkout 8315268e286499445c604b19aacfb0019e5dfb0b
4. cargo run --bin part-1-triangle
grovesNL commented 3 years ago

Hi! :wave: This might be a duplicate of #3505, which was recently resolved by #3680 (on master). Would you mind retrying your crate with master instead of 0.7 to check if #3680 resolved this for you?

Shaddaaa commented 3 years ago

Yep, can confirm it's fixed on master!