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

**URL:** <https://discourse.threejs.org/t/how-to-dispose-and-destroy-gltf-3d-reduced-performance/30140>\
**Category:** Questions\
**Tags:** dispose, gltf\
**Created:** [September 22, 2021, 10:06am UTC](https://discourse.threejs.org/t/how-to-dispose-and-destroy-gltf-3d-reduced-performance/30140 "2021-09-22T10:06:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninewill](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ninewill/32/16869_2.png) [@ninewill](https://discourse.threejs.org/u/ninewill)\
**Post date:** [September 22, 2021, 10:06am UTC](https://discourse.threejs.org/t/how-to-dispose-and-destroy-gltf-3d-reduced-performance/30140/1 "2021-09-22T10:06:31Z")

</div>

```javascript
 ....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.**

 ![01](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/b/6b3b1093af0de73f7cb719b56bef0b3b5b33e9c6.png)  
 ![02](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/2/5217414626c37e48f17d8c1f43746167ae786af8.png)

**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**

 ![03](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/7/171796d5e81a17caa068544f496c62022a1b15bf.png)  
 ![04](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/4/a4f4554cf2b34b104744b2a5095020564605d4ed.png)

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [September 22, 2021, 3:25pm UTC](https://discourse.threejs.org/t/how-to-dispose-and-destroy-gltf-3d-reduced-performance/30140/2 "2021-09-22T15:25:10Z")

</div>

See: [How to dispose of things](https://threejs.org/docs/#manual/en/introduction/How-to-dispose-of-objects).
