hi everyone i trying to load a model which is glb file its size is 816kb and it take upto 1 min to load on local it is load instant but when we trying to load on stage its going to be slow and we are get model from s3 please suggest me why it is slow
createCup(){
var self = this;
self.meshUrl = this.productDetail.productCode + ".glb"
self.modalPath = environment[global.env].RESOURCE_URL_AMAZON + environment[global.env].RESOURCE_CONTAINER + environment[global.env].oemCode + "/preview/" + this.productDetail.productCode + '.glb';
SceneLoader.ImportMesh("",
// "./assets/models/",
self.modalPath,
"",
this.scene, (frame, particleSystems, skeletons, animationGroups)=>{
this.meshes = frame;
this.animationgroups = animationGroups;
this.ifcardanimatedproduct = this.handleCardAnimatedProduct(this.animationgroups);
this.ifanimatedproduct = this.handleAnimatedProduct(this.animationgroups);
this.scene.createDefaultCamera(true, true, true);
this.updateMaskedArea();
if (this.selectedPaper) {
this.showPaperColorOption(this.selectedPaper);
}
this.setcameraposition(this.scene);
this.engine.hideLoadingUI();
console.log(this.meshes);
} );
const endTime = performance.now();
const loadTime = endTime - this.startTime;
console.log('Model load time: ' + loadTime + ' milliseconds');
setTimeout(() => {
this.cdr.detectChanges();
}, 1);
}