taj-ny / kwin-effects-forceblur

Fork of the KWin Blur effect for KDE Plasma 6 with additional features (including force blur) and bug fixes
GNU General Public License v3.0
165 stars 10 forks source link

High VRAM usage on nvidia (memory leak?) #108

Open kelvie opened 6 days ago

kelvie commented 6 days ago

Hello, on my nvidia system, it seems like VRAM usage is really high with this plugin after opening windows and even after closing them.

I'm not sure how to debug this though, but basicaly, on boot:

kwin_wayland uses 110 MB vram

After opening firefox, it shoots up to 2.5GB vram, then even after closing it, it remains at 2.5GB. Perhaps there's a texture leak or something somewhere?

taj-ny commented 5 days ago

Main or develop? I tested both and couldn't reproduce this on KWin 6.1.5 and Nvidia 560.35.03.

I noticed that resizing a window results in the VRAM usage increasing from ~50MiB to ~450MiB, but that happened without any blur effects enabled and didn't increase further.

I also checked all the places where textures are allocated and I couldn't anything that would cause such a massive memory leak.

kelvie commented 5 days ago

Main, and you're right, it's not blur, it's resizing windows: https://github.com/NVIDIA/egl-wayland/issues/126#issuecomment-2372756819

It seems vram just isn't freed right on this driver, and blur seems to make it happen faster. I'll close this, thanks for checking!