How to dispose and destroy GLTF 3D, Reduced performance..?

 ....code....

  $("#clearModel").click(function () {
    scene.remove(box);
    box.dispose();
  });
  $("#addModel").click(function () {
    scene.add(box);
  });
}

init();
animate();

The GPU will improve when the 3d model is in the scene.


When I remove the model, the GPU is reduced, but there is still some performance consumption.
I call remove() and dispose() , but performanceis only reduced by half


See: How to dispose of things.

1 Like