-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU memory leak when stop capturing #77
Comments
Thanks for reporting this! What build of Windows are you seeing this on? |
I'm seeing this on Windows 11 Home 23H2 22631.3880. It also happens on Windows Server 2022 21H2 20348.1129. Thanks for your time! |
Hello Rob, could you please confirm if this is a WGC issue or my fault to use it wrong? Thank you |
Sorry for the delay! I tried a couple machines and my results are inconsistent. I wonder if this depends on the driver... I'll need more time to investigate. |
Could you share GPU and driver version for the machines you're seeing this on? If you could match that to the Windows builds you already provided that would be very helpful. |
Yes, GPU is NVIDIA GeForce RTX 3050 Laptop, driver version is 551.61. |
Hello Rob,
It seems like the GPU memory is not released after clicking stop capturing.
I did a few test on this and it seems like winrt::Windows::Graphics::Capture::GraphicsCaptureSession close() method didn't release GPU memory correctly. It's pretty simple to reproduce, just keep doing select display and stop capturing, and look at the task manager GPU memory usage of Win32CaptureSample.exe, it keeps increasing. Could you please help look at this issue? Or give me some guidance if I made something wrong to cause this GPU memory leak. Thanks!
The text was updated successfully, but these errors were encountered: