Skip to content

Conversation

@querielo
Copy link
Contributor

@querielo querielo commented Dec 2, 2025

It is similar to #32395

Copilot AI review requested due to automatic review settings December 2, 2025 10:30
@querielo querielo changed the title BloomNode: Implement disposal of materials to prevent memory leaks TSL: BloomNode: Implement disposal of materials to prevent memory leaks Dec 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds proper disposal of materials in the BloomNode class to prevent memory leaks. The changes ensure that all dynamically created materials are properly cleaned up when the node is no longer needed.

  • Added disposal of _highPassFilterMaterial and _compositeMaterial with null checks
  • Added disposal loop for all materials in the _separableBlurMaterials array

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@Mugen87 Mugen87 added this to the r182 milestone Dec 2, 2025
@Mugen87 Mugen87 merged commit 656a31b into mrdoob:dev Dec 2, 2025
15 checks passed
@Mugen87 Mugen87 changed the title TSL: BloomNode: Implement disposal of materials to prevent memory leaks BloomNode: Implement disposal of materials to prevent memory leaks. Dec 2, 2025
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.

2 participants