Skip to content

Conversation

iwoplaza
Copy link
Collaborator

Early on, we decided to track buffers and textures that are created using the root. This made sense for creating roots out of already existing devices (tgpu.initFromDevice), as by destroying the root, you would destroy every resource created only with that root. This however increases the risk of leaking memory if the user doesn't properly dispose of allocated resources.

I think we should remove this "feature", in favor of decreasing the risk of introducing memory leaks.

Copy link

github-actions bot commented Sep 30, 2025

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@ab4f6192d03ae082d07b5035648ac7c051efd095
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@ab4f6192d03ae082d07b5035648ac7c051efd095
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@ab4f6192d03ae082d07b5035648ac7c051efd095

benchmark
view benchmark

commit
view commit

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.

1 participant