gro-ove / actools

Alternative launcher for Assetto Corsa named Content Manager, and some utils as well.
http://acstuff.ru/app
Microsoft Public License
553 stars 71 forks source link

Task Manager reporting high Dedicated GPU Memory for Content Manager.exe #92

Open phoenix172 opened 11 months ago

phoenix172 commented 11 months ago

Hello, I have an issue with excessive VRAM usage coming from ContentManager - I suppose it is a memory leak (WPF does that sometimes with VRAM).

Here is a screenshot of what I am seeing. image

Happens after playing AC for a while, with CM open in the background. AC also starts to stutter soon after point, due to the high VRAM usage Stutters make it quite difficult to play until restart of CM fixes the issue. Happened once, but then also reoccurred multiple times. 

You can show the Dedicated VRAM column by right clicking the data grid header in Details tab of Task Manager and pressing Select Columns. In the past, I have seen high VRAM usage from other WPF apps while debugging, but nothing too serious when running a Release build without a debugger attached. I believe you have an issue in your code base that might be causing this.

My current CM version is: 0.8.2467.39678 Latest version at the time of writing is: 0.8.2467.39678

Here are some system details that might help: Windows 10 AMD Ryzen 3800x AMD RX 6600 GPU Driver Version: 23.7.2 (Released 7/20/2023 - oldie but works well everywhere and is stable)  3x1080p + 1x4K screens all connected Audio (probably not relevant but who knows): Behringer UMC404HD with VoiceMeeter Potato

I have a pretty weird and complicated set up. Keep that in mind. Lots of moving software parts, but no other app does this on my system with the exception of dwm.exe (part of explorer.exe, known to leak VRAM, windows issue, but only ever up to 3-4 GB). Content Manager is the only other one. And I have never seen a number such as 88 GB VRAM, that was not a bug (which you can see in the screenshot).

Feel free to contact me for a voice call, if you fail to reproduce the issue on another system. I seem to be consistently able to reproduce it on mine. Definitely not a sporadic issue from my point of view.

I will be happy to contribute with debugging efforts as well, if needed.

CheesyManiac commented 11 months ago

Currently the latest CM is 0.8.2594, please update CM and try again.

phoenix172 commented 11 months ago

I just retested with version 0.8.2594.39678 from Patreon and the issue reoccurred. I managed to fix it by disabling GPU Hardware Acceleration for CM UI just now though. Not sure why it happens. Let me know if I can help in any other way.