WebGL garbage collection
Opened this issue · 1 comments
@jasonmayes' talk and @annxingyuan's talk mention the challenge of garbage-collecting with the WebGL API in the context of providing a library on top of WebGL-managed resources.
@grorg is there a well-known approach to deal with this, or ongoing work in WebGL land to address this?
Is this also an issue in the context of WebGPU?
I mentioned my thoughts here on the other thread #66 related to WebGPU. In essence most JS devs do not think about memory cleanup as the JS garbage collector works so well, but as ML becomes more popular these sorts of leaks will certainly grow. This can help not only ML model execution from springing memory leaks but also folk working with graphics generally speaking too.
Adding @pyu10055 @dsmilkov @nsthorat @annxingyuan @tafsiri @lina128 for any thoughts related to this topic too (TF.js team) and for visibility.