# How can i check if dispose removed my geometries and materials?

**URL:** https://discourse.threejs.org/t/how-can-i-check-if-dispose-removed-my-geometries-and-materials/592
**Category:** Questions
**Tags:** dispose
**Created:** [July 11, 2017, 8:19pm UTC](https://discourse.threejs.org/t/how-can-i-check-if-dispose-removed-my-geometries-and-materials/592 "2017-07-11T20:19:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![s333](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@s333](https://discourse.threejs.org/u/s333)
#### Post date: [July 11, 2017, 8:19pm UTC](https://discourse.threejs.org/t/how-can-i-check-if-dispose-removed-my-geometries-and-materials/592/1 "2017-07-11T20:19:53Z")

</div>

I have a function:

```auto
 function removeBySid(sid) {
            scene.traverse(function(node) {
                         if (node instanceof THREE.Mesh) {
                            if (node.geometry) {
                                node.geometry.dispose();
                            }
                            if (node.material) {
                                node.material.dispose(); 
                            }
                         }

                        scene.remove(node);
            });
        };

```

how will i be able to tell if geometries and materials have been disposed? is there a way to check?

---

<div class="post-metadata">

### Author: ![INF1N1T](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/inf1n1t/32/79_2.png) [@INF1N1T](https://discourse.threejs.org/u/INF1N1T)
#### Post date: [July 12, 2017, 8:32am UTC](https://discourse.threejs.org/t/how-can-i-check-if-dispose-removed-my-geometries-and-materials/592/2 "2017-07-12T08:32:36Z")

</div>

Hello s333,

If you are using three.js [webGLRenderer](https://threejs.org/docs/index.html#api/renderers/WebGLRenderer), there is a `.info` property that should give the info you are looking for:

**memory** :

- geometries
- textures

**render** :

- calls
- vertices
- faces
- points

**programs**

I use to integrate `threex.rendererstats` from [learningthreejs.com](http://learningthreejs.com/blog/2013/06/25/monitor-rendering-performance-within-threejs/), which encapsulate the .info details into a little app. Unfortunatly, the app stopped working a few version back. Maybe someone could refresh the code as it gives very usefull details, specially when one starts looking a memory/perf management…

Another option would be to use the shader editor from [firefox dev edition](https://www.mozilla.org/en-US/firefox/developer/) that gives the loaded/unloaded programs.

GL & HF

---

<div class="post-metadata">

### Author: ![s333](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@s333](https://discourse.threejs.org/u/s333)
#### Post date: [July 14, 2017, 8:30am UTC](https://discourse.threejs.org/t/how-can-i-check-if-dispose-removed-my-geometries-and-materials/592/3 "2017-07-14T08:30:37Z")

</div>

Thanks! awesome! 🙂
