Hi everyone! I loaded the glb files using the container asset and create an entity using the “instantiateRenderEntity” function.
I’ve noticed that when using low CPU devices (also test on the Chrome performance dev tool set to 6x slowdown), the “instantiateRenderEntity” function freezes the frame for a while. My assumption is that this happens because the “cloneHierarchy” function within “instantiateRenderEntity” takes time to loop through all the nodes in the complex model.
Does anyone face the same situation?
Any ideas on how to avoid this freeze in such cases
const entity = asset.resource.instantiateRenderEntity();
const rootEntity = new pc.Entity(name);
rootEntity.addChild(entity);
Thank you.