# Fast and effective rendering when adding huge many spheres entities

**URL:** <https://community.cesium.com/t/fast-and-effective-rendering-when-adding-huge-many-spheres-entities/18183>\
**Category:** CesiumJS\
**Created:** [April 15, 2022, 7:24am UTC](https://community.cesium.com/t/fast-and-effective-rendering-when-adding-huge-many-spheres-entities/18183 "2022-04-15T07:24:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhjojhjo](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jhjojhjo/32/8116_2.png) [@jhjojhjo](https://community.cesium.com/u/jhjojhjo)\
**Post date:** [April 15, 2022, 7:24am UTC](https://community.cesium.com/t/fast-and-effective-rendering-when-adding-huge-many-spheres-entities/18183/1 "2022-04-15T07:24:24Z")

</div>

Hi everyone.  
I am a newbie with cesium.

When I draw and manage 10000 ~ 100000 spheres, I am finding more effective method.

1. draw and add every spheres  
for(i=0; i\< 10000;i++)  
{  
entity[i] = viewer.entities.add({  
name : i,  
position : any\_position,  
show : show,  
ellipsoid: {  
radii : new Cesium.Cartesion3(radius, radius, radius),  
material: any\_color,  
},  
label : {  
text: i,  
scale: 0.4  
}  
});  
}

2. add and change a position after clone a entity  
var entity\_base = viewer.entities.add({  
name : any\_name,  
position : any\_position,  
ellipsoid: {  
radii : new Cesium.Cartesion3(radius, radius, radius),  
material: any\_color,  
show : false  
},  
label : {  
text: i,  
scale: 0.4,  
show: false  
}  
});

for(i=0; i\< 10000;i++)  
{  
var entity1 = Cesium.clone(entity\_base);  
entity1.position = any\_position;  
entity1.name = i;  
entity1.ellipsoid.color = any\_color;  
entity1.label.text = i;  
entity[i] = viewer.entities.add(entity1);  
entity[i].ellipsoid.show = true;  
entity[i].label.show = true;  
}

Which method is more effective ?
