# Performance Optimization Tips for Lots of Spheres (but a bit complicated)?

**URL:** <https://discourse.threejs.org/t/performance-optimization-tips-for-lots-of-spheres-but-a-bit-complicated/12655>\
**Category:** Questions\
**Tags:** instancing, performance, geometry\
**Created:** [February 11, 2020, 4:21am UTC](https://discourse.threejs.org/t/performance-optimization-tips-for-lots-of-spheres-but-a-bit-complicated/12655 "2020-02-11T04:21:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![lxiangyun93](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lxiangyun93/32/8839_2.png) [@lxiangyun93](https://discourse.threejs.org/u/lxiangyun93)\
**Post date:** [February 11, 2020, 1:02pm UTC](https://discourse.threejs.org/t/performance-optimization-tips-for-lots-of-spheres-but-a-bit-complicated/12655/5 "2020-02-11T13:02:44Z")

</div>

@prisoner849 yep, you are absolutely correct, for better performance, I did create a point cloud version of it, with lots of your help actually 😁 ([Display sprites correctly with customized Points material?](https://discourse.threejs.org/t/display-sprites-correctly-with-customized-points-material/12555), [Instancing Point Cloud - #11 by lxiangyun93](https://discourse.threejs.org/t/instancing-point-cloud/12280/11))

It’s a great alternative if there are more atoms, However, people still prefers actual spheres and it would be great if we could make this work as well. Again, the rendering performance with actual sphere is great, it’s only the overhead that’s too costly currently

I did a quick test, showing sphereTemplate.clone() along takes ~ 70-100 ms out of the 300ms total time, maybe we could bypass it somehow? or maybe the way I combined the buffergeometries were not ideal?

---

_[View the full topic](https://discourse.threejs.org/t/performance-optimization-tips-for-lots-of-spheres-but-a-bit-complicated/12655)._
