Yatekii / imgui-wgpu-rs

Dear imgui renderer for wgpu-rs.
MIT License
256 stars 84 forks source link

Massive memory leaks on Mac OS when in background #71

Open yaksher opened 2 years ago

yaksher commented 2 years ago

Description

hello_world example has memory leaks (up to 50 gigabytes) when left in the background on Mac OS X

Repro steps

Run the hello world example in release mode, then leave it in the background

System Information

Computer information: Mac OS 11.5.2, 16 Inch MacBook Pro 2019, AMD Radeon Pro 5500M 4 GB cargo version 1.53 imgui-wgpu v0.17.0 winit v0.24.0 wgpu-hal v0.10.7 wgpu v0.10.1 imgui v0.7.0 imgui-winit-support v0.7.1

cwfitzgerald commented 2 years ago

There's some issues with newer versions of MacOS not running garbage collection of resources while in the background. https://github.com/gfx-rs/wgpu/issues/1783 is the upstream issue to this.

yaksher commented 2 years ago

The linked issue appears to be M1-only while the issue here is occurring even on my Intel CPU laptop.