-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
win-capture: Fix leaking framebuffers data #9313
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adjust the commit message according to our contributing guidelines.
We also have been a bit inconsistent with the prefix for the hook, but it should either be win-capture:
(the plugin) or graphics-hook:
(for the sub project).
d5e9617
to
37333b7
Compare
You probably want to target the master branch instead of the release/29.1 branch, which is unlikely to get any more releases anyways. |
37333b7
to
6d3cd35
Compare
Yes, you're right, my bad, I was not aware that the 29.1 branch was "dead". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message is fine now, I'll leave the functional review to somebody whose more familiar with Vulkan stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes look good. @Lain-B might want to bump the hook version though.
Will do. |
The wrong linked list was used when removing framebuffer data. Furthermore, a pointer referenced an object on the stack that was no more valid.
6d3cd35
to
4956d32
Compare
Thank you very much for the fix. |
You're welcome, I'm happy to have helped. I don't know if the following information can be useful for you, but:
|
Description
The wrong linked list was used when removing framebuffer data. It generated memory leak, the linked list grew more and more involving performance degradation each time an application called the vkCmdBeginRenderPass.
Furthermore, few pointers referenced objects on the stack that were no more valid.
Motivation and Context
It solves a memory leak and performance problems.
How Has This Been Tested?
Tested on Windows 10.
Types of changes
Checklist: