How three.js renders more than a thousand sphere movements and color changes without sticking

three.js renders more than a thousand sphere movements and color changes without sticking. At present, the
var sphereMaterial = new THREE.MeshBasicMaterial ({color: 0xff0000}) of the sphere is created in this way;

var sphereGeometry = new THREE.SphereBufferGeometry(lampR, 20, 20);
var sphere = new THREE.Mesh(sphereGeometry, sphereMaterial);
Mar.11,2021

lampR, 20,20

the first 20 is the number of longitudes, and the second 20 is the number of latitudes. If the requirement for the smoothness of the ball is not high, it can be reduced, for example, 8 5
can greatly reduce the number of faces

.
Menu