dtcristo / bevy_pixels

Bevy plugin that uses Pixels (a tiny pixel buffer) for rendering
https://docs.rs/bevy_pixels
Apache License 2.0
84 stars 12 forks source link

Possible memory leak on windows. #4

Closed BradFitz66 closed 2 years ago

BradFitz66 commented 2 years ago

Noticed I had a very noticable memory leak in my program. Commented everything out except the App::build() and went my way through the systems commenting out each one until the memory leak stopped. It only stopped once .add_plugin(PixelsPlugin) was commented out.

I also tried it in a new and empty project with just the App::build() in it and still got a memory leak.

Here's a github with said empty project https://github.com/BradFitz66/Memory-Leak-Repro/

parasyte commented 2 years ago

It's almost certainly caused by the old version of wgpu. Lots of memory leaks have been fixed by now. #3 should fix it.

dtcristo commented 2 years ago

0.2.0 includes upgrades in #3, hopefully this fixes your issues 🙏 .