Skip to content

Conversation

@wouterlucas
Copy link
Contributor

Why?

The memory cleanup routine would resort on every run, this is quite expensive to do during frame generation time. Instead keep a list of orphaned textures, once we need to clean up pick the first one added to that list until we reach our threshold using a simple while loop.

@jfboeve jfboeve added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit 09ee79b Jan 31, 2025
2 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