Three.js particles load insanely slow? What's causing the slowness and massive cut in FPS? (From 60+ fps to 1-2 fps)

99封情书 提交于 2019-12-12 03:03:13

问题


I can't figure out what's slowing down my visualization. Ideally, I would like 60 fps. Not 1 fps or 2 fps.

Here are the repositories. For the first one, inside LeapVis1.2, if you open index.html with Firefox after you download the folder the vis should load. Non-Particles

For the repository that uses particles, open canvas_particles_random.html in Firefox. Particles (Even slower)


回答1:


First of all this is continuation of this question. The reason of its slowness is because your are using CanvasRenderer instead of WebGLRenderer. I guess you've misunderstood me. In three.js there are two objects: Particle - for canvas and ParticleSystem - for webgl. I've never ment to use canvas, because it is very slow in comparison with webgl.



来源:https://stackoverflow.com/questions/15776405/three-js-particles-load-insanely-slow-whats-causing-the-slowness-and-massive-c

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