# \#memory

**URL:** https://discourse.threejs.org/tag/memory/674.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [3d-tiles-renderer memory problem](https://discourse.threejs.org/t/3d-tiles-renderer-memory-problem/90078)

<div class="topic-metadata">

**Author:** [@Askkattor](https://discourse.threejs.org/u/Askkattor)\
**Replies:** 8\
**Last updated:** [March 8, 2026, 12:46am UTC](https://discourse.threejs.org/t/3d-tiles-renderer-memory-problem/90078 "2026-03-08T00:46:57Z")

</div>

Hello guys, when running my dual TilesRenderer scene with shared lruCache for an extended period of time with Google Photorealistic 3D Tiles + A Custom 3D Tileset and aggressively exploring / zooming in and out, the inte…

---

## [Curiosity about glTF GPU memory footprint](https://discourse.threejs.org/t/curiosity-about-gltf-gpu-memory-footprint/9733)

<div class="topic-metadata">

**Author:** [@fanna](https://discourse.threejs.org/u/fanna)\
**Replies:** 15\
**Last updated:** [December 15, 2024, 5:32pm UTC](https://discourse.threejs.org/t/curiosity-about-gltf-gpu-memory-footprint/9733 "2024-12-15T17:32:25Z")

</div>

Lately I’ve been working with the THREE.js glTFLoader and I was curious about the memory footprint it has on the GPU. Precisely what I don’t clearly understand is how come a binary file that is 869B (simple cube) has a …

---

## [Seeking Advice on Three.js Instance Placement Performance](https://discourse.threejs.org/t/seeking-advice-on-three-js-instance-placement-performance/67434)

<div class="topic-metadata">

**Author:** [@VictorHurtado](https://discourse.threejs.org/u/VictorHurtado)\
**Replies:** 5\
**Last updated:** [June 29, 2024, 4:51am UTC](https://discourse.threejs.org/t/seeking-advice-on-three-js-instance-placement-performance/67434 "2024-06-29T04:51:56Z")

</div>

Hello, everyone. I am once again requiring your aid. I’m currently working on a project where my goal is to dynamically place instances of objects with clicks (like voxels) to make it more mobile friendly, but I’ve enc…

---

## [How to verify GPU memory is properly released?](https://discourse.threejs.org/t/how-to-verify-gpu-memory-is-properly-released/65180)

<div class="topic-metadata">

**Author:** [@xiasun](https://discourse.threejs.org/u/xiasun)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 9:34am UTC](https://discourse.threejs.org/t/how-to-verify-gpu-memory-is-properly-released/65180 "2024-05-07T09:34:13Z")

</div>

I want to release all memory and GPU memory as needed in certain cases. I have tried removing all references in JavaScript, and the heap memory decreases. I have also tried calling dispose on textures/materials/renderers…

---

## [Excessive memory usage for GLTF file](https://discourse.threejs.org/t/excessive-memory-usage-for-gltf-file/62807)

<div class="topic-metadata">

**Author:** [@ericman314](https://discourse.threejs.org/u/ericman314)\
**Replies:** 12\
**Last updated:** [March 15, 2024, 11:05pm UTC](https://discourse.threejs.org/t/excessive-memory-usage-for-gltf-file/62807 "2024-03-15T23:05:21Z")

</div>

I have a ~5 MB GLTF file that is consuming about 9 GB of memory during and after loading. The file has no textures, just meshes. This 1800x increase in size seems a bit excessive, and I’m wondering if this is due to some…

---

## [Headless Rendering Memory Usage](https://discourse.threejs.org/t/headless-rendering-memory-usage/60618)

<div class="topic-metadata">

**Author:** [@Fareck\_Allony](https://discourse.threejs.org/u/Fareck_Allony)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 8:36am UTC](https://discourse.threejs.org/t/headless-rendering-memory-usage/60618 "2024-01-25T08:36:46Z")

</div>

Hello everyone. I am using headless-gl to do some offscreen rendering. In my case I have a scene where add some objects to it, take a screen shot and then add more objects and then take another screen shot and so on, t…

---

## [Benefits of implementing a Render Graph using ThreeJS](https://discourse.threejs.org/t/benefits-of-implementing-a-render-graph-using-threejs/60542)

<div class="topic-metadata">

**Author:** [@Romulus2100](https://discourse.threejs.org/u/Romulus2100)\
**Replies:** 5\
**Last updated:** [January 22, 2024, 10:52am UTC](https://discourse.threejs.org/t/benefits-of-implementing-a-render-graph-using-threejs/60542 "2024-01-22T10:52:28Z")

</div>

I am considering building a render graph that is inspired by this presentation For a good summary, you can consult this article and its referenced sources All of the resources that I can find on render graph implementa…

---

## [How can I dispose animationMixer's actions while it finished its Loop once?](https://discourse.threejs.org/t/how-can-i-dispose-animationmixers-actions-while-it-finished-its-loop-once/58673)

<div class="topic-metadata">

**Author:** [@sdarpeng](https://discourse.threejs.org/u/sdarpeng)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 1:34pm UTC](https://discourse.threejs.org/t/how-can-i-dispose-animationmixers-actions-while-it-finished-its-loop-once/58673 "2023-12-06T13:34:13Z")

</div>

I created a small duration action once to perform an interaction by listening to the mousemoving event. Bug after a while, I checked the console.log and find out that there were thousands of actions under the mixer. I c…

---

## [Trouble disposing Background from memory](https://discourse.threejs.org/t/trouble-disposing-background-from-memory/16956)

<div class="topic-metadata">

**Author:** [@ausrussell](https://discourse.threejs.org/u/ausrussell)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 6:57pm UTC](https://discourse.threejs.org/t/trouble-disposing-background-from-memory/16956 "2023-08-28T18:57:55Z")

</div>

I’m making a galleries app that allows you to visit different art galleries and am using the CubeTextureLoader class to create a cubemap for the background. I’m having trouble of disposing this background from memory. I’…

---

## [Browser crashes when loading large files (dxf, glTF, etc.)](https://discourse.threejs.org/t/browser-crashes-when-loading-large-files-dxf-gltf-etc/54309)

<div class="topic-metadata">

**Author:** [@Yan\_Zexuan](https://discourse.threejs.org/u/Yan_Zexuan)\
**Replies:** 7\
**Last updated:** [July 28, 2023, 1:24am UTC](https://discourse.threejs.org/t/browser-crashes-when-loading-large-files-dxf-gltf-etc/54309 "2023-07-28T01:24:22Z")

</div>

We are using three.js to load 2d/3d models in BIM domain, like dxf (converted from dwg), glTF/glb, etc. When there are too many entities, browser crashes. Of course, it depends on what devices/gpus we are using. Now I’m…

---

## [Offscreencanvas still janks main thread](https://discourse.threejs.org/t/offscreencanvas-still-janks-main-thread/52148)

<div class="topic-metadata">

**Author:** [@GeorgeP](https://discourse.threejs.org/u/GeorgeP)\
**Replies:** 0\
**Last updated:** [May 29, 2023, 9:38am UTC](https://discourse.threejs.org/t/offscreencanvas-still-janks-main-thread/52148 "2023-05-29T09:38:14Z")

</div>

Hi all, I’m having a strange issue with a fairly complex scene. I’ve spent a few days moving the entire 3D scene to an offscreencanvas and I’ve moved the loading of my GLB files and texture maps to a web worker. This al…

---

## [Runtime texture image downscaling for improving memory usage](https://discourse.threejs.org/t/runtime-texture-image-downscaling-for-improving-memory-usage/46082)

<div class="topic-metadata">

**Author:** [@sljavi](https://discourse.threejs.org/u/sljavi)\
**Replies:** 3\
**Last updated:** [May 25, 2023, 3:38pm UTC](https://discourse.threejs.org/t/runtime-texture-image-downscaling-for-improving-memory-usage/46082 "2023-05-25T15:38:55Z")

</div>

Hi forum, I have 3D models that perform fine in most of the devices, they require 500MB of memory. To get better performance on mobiles, I would like to reduce the memory allocation to 200MB or less. I manually generate…

---

## [THREE.WebGLRenderer Context Lost\_Performance\_RAM](https://discourse.threejs.org/t/three-webglrenderer-context-lost-performance-ram/44213)

<div class="topic-metadata">

**Author:** [@vira4\_company](https://discourse.threejs.org/u/vira4_company)\
**Replies:** 15\
**Last updated:** [May 2, 2023, 1:52pm UTC](https://discourse.threejs.org/t/three-webglrenderer-context-lost-performance-ram/44213 "2023-05-02T13:52:31Z")

</div>

Hi,I have a problem with WebGL in Three js I have a scene in three js and I import 3dmodels and add to the scene. (I download them from sketchfab in gltf format ,some of them with animation and some of them not) My PC…

---

## [How to ensure all texture images are loaded memory/cache before the scene is displayed?](https://discourse.threejs.org/t/how-to-ensure-all-texture-images-are-loaded-memory-cache-before-the-scene-is-displayed/48671)

<div class="topic-metadata">

**Author:** [@CosmicFantasy](https://discourse.threejs.org/u/CosmicFantasy)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 4:35am UTC](https://discourse.threejs.org/t/how-to-ensure-all-texture-images-are-loaded-memory-cache-before-the-scene-is-displayed/48671 "2023-03-13T04:35:50Z")

</div>

So my ThreeJS project loads a lot of image textures and places them onto various plane 3DObjects. The images are maybe 500Kb in size each and it loads about 500+ or so. For the textures that are immediately in front of…

---

## [How to query available memory within a web browser implementation of a three.js program](https://discourse.threejs.org/t/how-to-query-available-memory-within-a-web-browser-implementation-of-a-three-js-program/46306)

<div class="topic-metadata">

**Author:** [@oldman](https://discourse.threejs.org/u/oldman)\
**Replies:** 3\
**Last updated:** [December 29, 2022, 1:06pm UTC](https://discourse.threejs.org/t/how-to-query-available-memory-within-a-web-browser-implementation-of-a-three-js-program/46306 "2022-12-29T13:06:55Z")

</div>

I am starting this new topic since my search has not revealed a same/similar one. The topic statement says it all. Ideally, a function that can be called at any point in a three.js program that will state the amount of …

---

## [Dispose texture in raw shader](https://discourse.threejs.org/t/dispose-texture-in-raw-shader/45048)

<div class="topic-metadata">

**Author:** [@Pravin\_Poudel](https://discourse.threejs.org/u/Pravin_Poudel)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 2:55am UTC](https://discourse.threejs.org/t/dispose-texture-in-raw-shader/45048 "2022-11-24T02:55:23Z")

</div>

I am using custom shader by this: const meshMaterial = new THREE.RawShaderMaterial({ uniforms: uniforms, vertexShader: terrainShader.\_VS, fragmentShader: terrainShader.\_FS, }) and …

---

## [Memory consumption in stats increases on every refresh](https://discourse.threejs.org/t/memory-consumption-in-stats-increases-on-every-refresh/45040)

<div class="topic-metadata">

**Author:** [@Pravin\_Poudel](https://discourse.threejs.org/u/Pravin_Poudel)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 6:13am UTC](https://discourse.threejs.org/t/memory-consumption-in-stats-increases-on-every-refresh/45040 "2022-11-23T06:13:02Z")

</div>

I have multiple asynchronous code 2 texture loaders and a STL file loader const satelliteLoader = new THREE.TextureLoader() satelliteLoader.load( \`./img/Region\_${metaState.region}\_RGB.png\`, function (texture) { …

---

## [How to set a Euler object from a plain JSON object/](https://discourse.threejs.org/t/how-to-set-a-euler-object-from-a-plain-json-object/43691)

<div class="topic-metadata">

**Author:** [@MeJayEss](https://discourse.threejs.org/u/MeJayEss)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 1:55pm UTC](https://discourse.threejs.org/t/how-to-set-a-euler-object-from-a-plain-json-object/43691 "2022-10-17T13:55:33Z")

</div>

My virtual world receives position updates for the other players in the world from my server. I then have to take the update and reposition the avatar for the remote player to keep the worlds in sync. Therefore, I am s…

---

## [Creating a DataTexture3D with data consumes double memory](https://discourse.threejs.org/t/creating-a-datatexture3d-with-data-consumes-double-memory/42824)

<div class="topic-metadata">

**Author:** [@jotto](https://discourse.threejs.org/u/jotto)\
**Replies:** 5\
**Last updated:** [September 26, 2022, 11:56am UTC](https://discourse.threejs.org/t/creating-a-datatexture3d-with-data-consumes-double-memory/42824 "2022-09-26T11:56:15Z")

</div>

I am measuring the memory consumption when creating a DataTexture3D. If I create the texture first with a size and empty data, the memory consumption equals to the size of the texture as expected: var tex = new THREE.D…

---

## [WASM memory access out of bounds using DracoLoader on Mobile Browsers](https://discourse.threejs.org/t/wasm-memory-access-out-of-bounds-using-dracoloader-on-mobile-browsers/22930)

<div class="topic-metadata">

**Author:** [@dboy](https://discourse.threejs.org/u/dboy)\
**Replies:** 22\
**Last updated:** [September 21, 2022, 10:42am UTC](https://discourse.threejs.org/t/wasm-memory-access-out-of-bounds-using-dracoloader-on-mobile-browsers/22930 "2022-09-21T10:42:10Z")

</div>

Hi, I’m currently running into an issue where I’m trying to load a Draco compressed model using the Draco Loader on mobile browsers and it seems to hard crash during the call to the .load method. iOS Safari not and Chro…

---

## [Memory calculation before loading the model](https://discourse.threejs.org/t/memory-calculation-before-loading-the-model/42502)

<div class="topic-metadata">

**Author:** [@Aakash\_B](https://discourse.threejs.org/u/Aakash_B)\
**Replies:** 6\
**Last updated:** [September 14, 2022, 1:32pm UTC](https://discourse.threejs.org/t/memory-calculation-before-loading-the-model/42502 "2022-09-14T13:32:55Z")

</div>

Hi Guys, We have a viewer which loads the large number of meshes in it. As a solution to that, We are using some mesh reduction algorithm. But before loading the model to the scene we have to calculate the memory cons…

---

## [THREE.StaticMesh - Less memory, render faster](https://discourse.threejs.org/t/three-staticmesh-less-memory-render-faster/9611)

<div class="topic-metadata">

**Author:** [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Replies:** 10\
**Last updated:** [September 12, 2022, 9:37am UTC](https://discourse.threejs.org/t/three-staticmesh-less-memory-render-faster/9611 "2022-09-12T09:37:30Z")

</div>

This is a lightweight scene object class saving memory and giving a better performance for large scenes. It makes several optimizations without requiring core modifications. You can archive up to 50% better performanc…

---

## [Storage-efficient LOD management - host side](https://discourse.threejs.org/t/storage-efficient-lod-management-host-side/38975)

<div class="topic-metadata">

**Author:** [@vielzutun.ch](https://discourse.threejs.org/u/vielzutun.ch)\
**Replies:** 1\
**Last updated:** [June 9, 2022, 5:31pm UTC](https://discourse.threejs.org/t/storage-efficient-lod-management-host-side/38975 "2022-06-09T17:31:36Z")

</div>

I’m starting with two teaser images, to get you curious enough to read this till you arriv at my questions at the end: This is the 3D-rendering (elevation only) of a 1 by 1 km patch of a north-eastern part of the swiss …

---

## [The difference in the weight of the model itself and the amount of memory loaded in the console](https://discourse.threejs.org/t/the-difference-in-the-weight-of-the-model-itself-and-the-amount-of-memory-loaded-in-the-console/35233)

<div class="topic-metadata">

**Author:** [@banandai](https://discourse.threejs.org/u/banandai)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 5:01pm UTC](https://discourse.threejs.org/t/the-difference-in-the-weight-of-the-model-itself-and-the-amount-of-memory-loaded-in-the-console/35233 "2022-02-23T17:01:25Z")

</div>

What is the reason for the difference in amount of memory of the model itself and the amount of memory loaded in the console. All models are copy of one model Memory usage OBJ network tab in the dev console size …

---

## [How much GB of memory my renderer/scene is holding?](https://discourse.threejs.org/t/how-much-gb-of-memory-my-renderer-scene-is-holding/33139)

<div class="topic-metadata">

**Author:** [@Suresh\_Kumar](https://discourse.threejs.org/u/Suresh_Kumar)\
**Replies:** 14\
**Last updated:** [January 5, 2022, 11:01am UTC](https://discourse.threejs.org/t/how-much-gb-of-memory-my-renderer-scene-is-holding/33139 "2022-01-05T11:01:33Z")

</div>

Hi, I am creating an application using threejs where user can upload many stl models but they can see only one at a time in the viewer. I am controlling visibility of models by setting object3D.visible to true or false.…

---

## [What methods/tools do you use to inspect memory usage?](https://discourse.threejs.org/t/what-methods-tools-do-you-use-to-inspect-memory-usage/31879)

<div class="topic-metadata">

**Author:** [@orion\_prime](https://discourse.threejs.org/u/orion_prime)\
**Replies:** 2\
**Last updated:** [November 23, 2021, 5:57am UTC](https://discourse.threejs.org/t/what-methods-tools-do-you-use-to-inspect-memory-usage/31879 "2021-11-23T05:57:16Z")

</div>

Till now i used stats.js which has a memory display ,which does not provide adequate info is there a better way of doing this ? i want to track the entire site as well as just the rendereres memory usage i have a sit…

---

## [WebAssembly.Memory(): could not allocate memory on mobile browsers](https://discourse.threejs.org/t/webassembly-memory-could-not-allocate-memory-on-mobile-browsers/30611)

<div class="topic-metadata">

**Author:** [@bhushan6](https://discourse.threejs.org/u/bhushan6)\
**Replies:** 0\
**Last updated:** [October 8, 2021, 5:50am UTC](https://discourse.threejs.org/t/webassembly-memory-could-not-allocate-memory-on-mobile-browsers/30611 "2021-10-08T05:50:53Z")

</div>

My three js app is running good on desktops but giving me an error on mobile devices I do not understand the memory usage here What could be the problem?

---

## [SharedArrayBuffer availability](https://discourse.threejs.org/t/sharedarraybuffer-availability/28956)

<div class="topic-metadata">

**Author:** [@yombo](https://discourse.threejs.org/u/yombo)\
**Replies:** 2\
**Last updated:** [August 16, 2021, 9:13pm UTC](https://discourse.threejs.org/t/sharedarraybuffer-availability/28956 "2021-08-16T21:13:57Z")

</div>

Hi! I want to use SharedArrayBuffer in a static web app that will either run locally, or hosted in Github pages. As it has potential vulnerabilities I’ve read that in order to use it the server must send these headers: …

---

## [Memory Releases](https://discourse.threejs.org/t/memory-releases/22409)

<div class="topic-metadata">

**Author:** [@gaojunxiao](https://discourse.threejs.org/u/gaojunxiao)\
**Replies:** 2\
**Last updated:** [January 14, 2021, 11:37am UTC](https://discourse.threejs.org/t/memory-releases/22409 "2021-01-14T11:37:00Z")

</div>

three a memory block managed on the GPU memory when rendering the model, the memory release after clearing the vertex buffer has a delay, how to use the gl.deleteBuffer (data.buffer) to quickly release memory, can provid…

---

## [Three How to Free Memory Fast by dispose Removing Model](https://discourse.threejs.org/t/three-how-to-free-memory-fast-by-dispose-removing-model/22240)

<div class="topic-metadata">

**Author:** [@gaojunxiao](https://discourse.threejs.org/u/gaojunxiao)\
**Replies:** 3\
**Last updated:** [January 9, 2021, 10:56am UTC](https://discourse.threejs.org/t/three-how-to-free-memory-fast-by-dispose-removing-model/22240 "2021-01-09T10:56:36Z")

</div>

stl models are constantly added and deleted in three projects and cached are released in a dispose way, deleting models My project is running on a 2 G memory pad, and now I want to solve the problem Release memory quic…

[Next page](https://discourse.threejs.org/tag/memory/674.md?match_all_tags=true&page=1&tags%5B%5D=memory)
