-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threejs内存泄漏 #57
Comments
好的,感谢,写的时候都没注意 |
|
我的理解是要,这个得记录下animate_id,在退出的时候调用cancelAnimationFrame. |
okk |
加了cleanup后,我发现频繁切换,dom节点还是会稳步增加,是不是还有什么地方没有处理 |
是的,我还在排查。昨天加班还没时间弄 |
Hi,
不得不说您的整体方案非常完善,写得非常好。
我发现在Home的index.vue中,onmount会去创建对应的threejs的效果,但是在onUmounted有一些没有释放。
如果打开页面后,频繁多次切换会有内存泄漏,整个浏览器会比较卡。可以合入了类似的cleanup
我测试后,应该是基本没有泄漏的问题。另外我尝试了下用tauri打包了下,功能也基本没问题,有需要感觉可以也加入,当然我看您也加了Docker,也很方便。
The text was updated successfully, but these errors were encountered: