Skip to content

fixes(#1002): Schedule deferred drop for render passes to avoid dropping before frame is over#1003

Merged
not-fl3 merged 1 commit into
not-fl3:masterfrom
jonatino:renderpass_lifetime_fix
Nov 3, 2025
Merged

fixes(#1002): Schedule deferred drop for render passes to avoid dropping before frame is over#1003
not-fl3 merged 1 commit into
not-fl3:masterfrom
jonatino:renderpass_lifetime_fix

Conversation

@jonatino

@jonatino jonatino commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

This updates render passes to be dropped in a similar manner as textures. When there are no more references to a render pass (other than itself), we schedule it for deletion that way we're not deleting textures before we use them. This way we guarantee that every render pass/render target will live until the end of the current frame.

Fixes issue #1002

@profan

profan commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

I think this looks reasonable to me and it way more closely matches the behaviour people probably expect, though I obviously can't merge it, that's still a @not-fl3 job 👀

@not-fl3

not-fl3 commented Nov 3, 2025

Copy link
Copy Markdown
Owner

Sure sure @profan :D

Thanks for PR!

@not-fl3 not-fl3 merged commit 23b8bc3 into not-fl3:master Nov 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants