Performance drop on multiple restart of scene from threejs

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 05:01:47

问题


I have been building the application using the threejs now when i am trying to restart the scene multiple time there is the performance drop as per the forum Performance drops when trying to reset whole scene with Three.js i am deallocating all the __objects available inside my scene i am runing a loop and deleting my objects also by creating a custom unload function more over i am also clearing the time interval from request animation frame. But on each restart there is performance drop which i see on my chrome webkit FPS counter.

Few this i want to highlight: 1) I have used a Global variable. 2) I am deleting the variables which are not used dynamically. 3) location.reload is solving my problem but i dont want this solution

Please help me with this issue.

来源:https://stackoverflow.com/questions/18286450/performance-drop-on-multiple-restart-of-scene-from-threejs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!