# \#memory

**URL:** https://forum.babylonjs.com/tag/memory/314.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Draft: Fast BoundingInfo](https://forum.babylonjs.com/t/draft-fast-boundinginfo/62770)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 10\
**Last updated:** [May 18, 2026, 6:26am UTC](https://forum.babylonjs.com/t/draft-fast-boundinginfo/62770 "2026-05-18T06:26:36Z")

</div>

Note This is a very early draft, and could be changed in future, and might not be implemented. This post is crafted with the help of AI, especially the algorithm part. Motivation BoundingInfo is the most frequently call…

---

## [GaussianSplattingMesh: reducing buffer copy of removePart](https://forum.babylonjs.com/t/gaussiansplattingmesh-reducing-buffer-copy-of-removepart/63164)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [April 22, 2026, 5:28am UTC](https://forum.babylonjs.com/t/gaussiansplattingmesh-reducing-buffer-copy-of-removepart/63164 "2026-04-22T05:28:17Z")

</div>

Summary Add view-backed raw splat source support, starting with compound rebuild internals. Preserve aligned views as-is, and copy only if required by alignment, size, or ownership constraints. The main expected benefit …

---

## [Use matrixData for thin instance picking](https://forum.babylonjs.com/t/use-matrixdata-for-thin-instance-picking/63194)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [April 20, 2026, 5:16am UTC](https://forum.babylonjs.com/t/use-matrixdata-for-thin-instance-picking/63194 "2026-04-20T05:16:12Z")

</div>

Summary The thin-instance picking path in InternalPick() and InternalMultiPick() currently calls thinInstanceGetWorldMatrices(), which lazily allocates a cached Matrix\[\] by calling Matrix.FromArray() once per thin instan…

---

## [Remove Infinite-Distance Root Allocation in \`TransformNode.computeWorldMatrix\`](https://forum.babylonjs.com/t/remove-infinite-distance-root-allocation-in-transformnode-computeworldmatrix/63125)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 1:36am UTC](https://forum.babylonjs.com/t/remove-infinite-distance-root-allocation-in-transformnode-computeworldmatrix/63125 "2026-04-14T01:36:12Z")

</div>

Summary Remove the per-call new Vector3(...) allocation in the root-node infinite-distance path of TransformNode.computeWorldMatrix() and replace it with a zero-allocation implementation based on direct matrix element re…

---

## [Android 11 and BabylonJS 8 consistent memory leak](https://forum.babylonjs.com/t/android-11-and-babylonjs-8-consistent-memory-leak/62788)

<div class="topic-metadata">

**Author:** [@jcd\_debuguser](https://forum.babylonjs.com/u/jcd_debuguser)\
**Replies:** 3\
**Last updated:** [March 17, 2026, 5:02pm UTC](https://forum.babylonjs.com/t/android-11-and-babylonjs-8-consistent-memory-leak/62788 "2026-03-17T17:02:07Z")

</div>

Our App It is a WebView in Android 11 that is loading a basic React app and using BabylonJS 8. Our Issue The issue that we see is that there is a consistent memory leak into the Native space even if there is no intera…

---

## [Potential memory leak in \`WebGPUCacheBindGroups\`?](https://forum.babylonjs.com/t/potential-memory-leak-in-webgpucachebindgroups/62697)

<div class="topic-metadata">

**Author:** [@regna](https://forum.babylonjs.com/u/regna)\
**Replies:** 2\
**Last updated:** [March 7, 2026, 9:36am UTC](https://forum.babylonjs.com/t/potential-memory-leak-in-webgpucachebindgroups/62697 "2026-03-07T09:36:43Z")

</div>

Sorry to bother again, though I think I found another WebGPU memory leak Thanks to fixes by Evgeni, I was able to get my WebGPU project in a state with no memory leaks. Now I’m enabling game features one by one to see i…

---

## [Gltf loader: do not clone animation keys](https://forum.babylonjs.com/t/gltf-loader-do-not-clone-animation-keys/60903)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 6\
**Last updated:** [October 28, 2025, 4:01pm UTC](https://forum.babylonjs.com/t/gltf-loader-do-not-clone-animation-keys/60903 "2025-10-28T16:01:52Z")

</div>

In glTFLoaderAnimation, animation is constructed with setKeys() And setKeys defaults to clone keys Since these keys are built in-place for each channel (should be for each sampler, since gltf samplers can be reused, …

---

## [Draft: Compact Animation System](https://forum.babylonjs.com/t/draft-compact-animation-system/60665)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [October 15, 2025, 12:24am UTC](https://forum.babylonjs.com/t/draft-compact-animation-system/60665 "2025-10-15T00:24:22Z")

</div>

Note This is a very early draft, and could be changed in future, and might not be implemented. Background This is the redesign of the long-rejected proposal into a plugin. Motivation Currently animation system in baby…

---

## [Huge Memory Fluctuation Issue](https://forum.babylonjs.com/t/huge-memory-fluctuation-issue/60441)

<div class="topic-metadata">

**Author:** [@luming](https://forum.babylonjs.com/u/luming)\
**Replies:** 2\
**Last updated:** [September 11, 2025, 7:46am UTC](https://forum.babylonjs.com/t/huge-memory-fluctuation-issue/60441 "2025-09-11T07:46:06Z")

</div>

:exclamation: :person\_raising\_hand: IMPORTANT! PLEASE REPRODUCE YOUR ISSUE ON THE Playground FIRST! :person\_raising\_hand: :exclamation: I just noticed my memory consumption fluctuates to a double amount while the scen…

---

## [GreasedLineMesh: preallocate buffers](https://forum.babylonjs.com/t/greasedlinemesh-preallocate-buffers/60383)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [September 8, 2025, 1:56am UTC](https://forum.babylonjs.com/t/greasedlinemesh-preallocate-buffers/60383 "2025-09-08T01:56:55Z")

</div>

Background Currently GreasedLineMesh.\_setPoints allocates many buffers for each new TypedArray call, there is even memory allocation in loop, this preallocated the buffer needed to reduce memory pressure. Proposed chang…

---

## [Block based Float32Array builder](https://forum.babylonjs.com/t/block-based-float32array-builder/60411)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 0\
**Last updated:** [September 8, 2025, 1:22am UTC](https://forum.babylonjs.com/t/block-based-float32array-builder/60411 "2025-09-08T01:22:16Z")

</div>

The performance is expected to be worse than preallocated buffers with correct size. The core idea is to manage data in fixed-size blocks (Float32Arrays) and only combine them into a single, contiguous Float32Array when…

---

## [CameraGizmo: reuse materials](https://forum.babylonjs.com/t/cameragizmo-reuse-materials/60292)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 9\
**Last updated:** [September 5, 2025, 8:05am UTC](https://forum.babylonjs.com/t/cameragizmo-reuse-materials/60292 "2025-09-05T08:05:43Z")

</div>

Currently a CameraGizmo creates 13 materials by default, see console of this playground: Most of which are colorShader material for lines, so it can be reused, at least inside this CameraGizmo. This playground shows an…

---

## [Reducing VRAM usage for instances and thin instances](https://forum.babylonjs.com/t/reducing-vram-usage-for-instances-and-thin-instances/60039)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [August 15, 2025, 12:34am UTC](https://forum.babylonjs.com/t/reducing-vram-usage-for-instances-and-thin-instances/60039 "2025-08-15T00:34:16Z")

</div>

Currently instances and thin instances use 4 vec4 buffers for instanced matrices. But as the matrices are composed from TRS, or multiplied with other matrices with TRS, the last row of it should always be 0, 0, 0, 1, an…

---

## [Potential memory leak with \`managedMaterialPlugins\`](https://forum.babylonjs.com/t/potential-memory-leak-with-managedmaterialplugins/57570)

<div class="topic-metadata">

**Author:** [@mysticfall](https://forum.babylonjs.com/u/mysticfall)\
**Replies:** 4\
**Last updated:** [April 3, 2025, 1:48pm UTC](https://forum.babylonjs.com/t/potential-memory-leak-with-managedmaterialplugins/57570 "2025-04-03T13:48:28Z")

</div>

While profiling my Babylon 7.x project, I noticed that the number of WebXRDepthSensingMaterialPlugin instances keeps increasing whenever I create a scene, clone a few meshes, then dispose it: A brief look at the refe…

---

## [Reducing memory consumption in BabylonJS apps](https://forum.babylonjs.com/t/reducing-memory-consumption-in-babylonjs-apps/53242)

<div class="topic-metadata">

**Author:** [@DavidP](https://forum.babylonjs.com/u/DavidP)\
**Replies:** 29\
**Last updated:** [April 3, 2025, 10:52am UTC](https://forum.babylonjs.com/t/reducing-memory-consumption-in-babylonjs-apps/53242 "2025-04-03T10:52:22Z")

</div>

Hi everyone, In our project, we display a large number of meshes and their associated textures. We’ve noticed that sometimes our app fails to load on smartphone browsers due to high memory requirements. I am wondering i…

---

## [Navmesh memory usage](https://forum.babylonjs.com/t/navmesh-memory-usage/55611)

<div class="topic-metadata">

**Author:** [@Panuchka](https://forum.babylonjs.com/u/Panuchka)\
**Replies:** 11\
**Last updated:** [January 20, 2025, 11:15am UTC](https://forum.babylonjs.com/t/navmesh-memory-usage/55611 "2025-01-20T11:15:56Z")

</div>

Hi everyone! I’m trying to run null engine on some memory constrained environment (web server), and I’ve been looking on potential optimizations for it. My max ram atm is 1024mb, and I’m hitting around 700mb when there …

---

## [SubMesh: pre-allocate buffers for \_getLinesIndexBuffer](https://forum.babylonjs.com/t/submesh-pre-allocate-buffers-for-getlinesindexbuffer/55585)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [January 2, 2025, 7:31pm UTC](https://forum.babylonjs.com/t/submesh-pre-allocate-buffers-for-getlinesindexbuffer/55585 "2025-01-02T19:31:03Z")

</div>

Version: 7.42.0 Background Currently in \_getLinesIndexBuffer a linesIndices buffer is initialized as array, which size grows dynamically in the loop after it, which could lead to memory reallocations and more gc pressur…

---

## [Procedural texture memory leak](https://forum.babylonjs.com/t/procedural-texture-memory-leak/53627)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 8\
**Last updated:** [September 24, 2024, 9:44am UTC](https://forum.babylonjs.com/t/procedural-texture-memory-leak/53627 "2024-09-24T09:44:34Z")

</div>

Hey everyone! I have been tracking a memory leak in Cosmos Journeyer for about a week now where disposing planets would not release the RAM used. I finally tracked it down to a large procedural texture that just does n…

---

## [Loading Assets From Memory](https://forum.babylonjs.com/t/loading-assets-from-memory/51156)

<div class="topic-metadata">

**Author:** [@sumdy-c](https://forum.babylonjs.com/u/sumdy-c)\
**Replies:** 18\
**Last updated:** [June 10, 2024, 11:52am UTC](https://forum.babylonjs.com/t/loading-assets-from-memory/51156 "2024-06-10T11:52:09Z")

</div>

Good afternoon, Babylon.js community! I apologize in advance, I’m using auto-translate. I wanted to ask a question about delivering resources to the end user, on the client. I’ve organized the delivery of the model fr…

---

## [Surprisingly big memory footprint on Safari against Chromium](https://forum.babylonjs.com/t/surprisingly-big-memory-footprint-on-safari-against-chromium/39130)

<div class="topic-metadata">

**Author:** [@Jannick](https://forum.babylonjs.com/u/Jannick)\
**Replies:** 5\
**Last updated:** [May 12, 2024, 4:03pm UTC](https://forum.babylonjs.com/t/surprisingly-big-memory-footprint-on-safari-against-chromium/39130 "2024-05-12T16:03:07Z")

</div>

Hello again! :star: I have done some testing due to reaching memory limits on iOS devices. I’ve spent some time testing my own application specifically until I reached what is seemingly bare minimum oddities. We load a …

---

## [MeshoptDecoder Memory Leak](https://forum.babylonjs.com/t/meshoptdecoder-memory-leak/49696)

<div class="topic-metadata">

**Author:** [@OrigamiPete](https://forum.babylonjs.com/u/OrigamiPete)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 11:48pm UTC](https://forum.babylonjs.com/t/meshoptdecoder-memory-leak/49696 "2024-04-16T23:48:35Z")

</div>

As discussed in this meshoptimizer issue, and from my own findings, when using decodeGltfBufferAsync the memory allocated by the MeshoptDecoder does not get released. Arseny’s solution for cleaning up the wasm memory is…

---

## [Benchmarking memory copy in js/wasm](https://forum.babylonjs.com/t/benchmarking-memory-copy-in-js-wasm/48295)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 7:24am UTC](https://forum.babylonjs.com/t/benchmarking-memory-copy-in-js-wasm/48295 "2024-02-26T07:24:07Z")

</div>

Note: the results are very different in chromium and firefox. Link: Code: 'use strict'; var mem = new WebAssembly.Memory({ initial: 128 }); var data = new Int32Array(mem.buffer); var reference = data.slice(); for…

---

## [How does babylon free up memory quickly when a page is unloaded](https://forum.babylonjs.com/t/how-does-babylon-free-up-memory-quickly-when-a-page-is-unloaded/47156)

<div class="topic-metadata">

**Author:** [@ecojust](https://forum.babylonjs.com/u/ecojust)\
**Replies:** 5\
**Last updated:** [January 12, 2024, 3:57pm UTC](https://forum.babylonjs.com/t/how-does-babylon-free-up-memory-quickly-when-a-page-is-unloaded/47156 "2024-01-12T15:57:04Z")

</div>

I write a simple page to test Garbage Collection. Monitor performance panel data changes by repeatedly adding and removing IFrames iframe page content \<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="UTF-…

---

## [Using AMD FSR with babylon.js](https://forum.babylonjs.com/t/using-amd-fsr-with-babylon-js/39326)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 6\
**Last updated:** [January 9, 2024, 10:07pm UTC](https://forum.babylonjs.com/t/using-amd-fsr-with-babylon-js/39326 "2024-01-09T22:07:30Z")

</div>

Update Aug.2026: It’s landed! Background: On making a page to work with some high-resolution screens, we found that the gpu memory is too easy to run out, the setHardwareScalingLevel can reduce the use of gpu memory…

---

## [iOS browser memory leak](https://forum.babylonjs.com/t/ios-browser-memory-leak/46746)

<div class="topic-metadata">

**Author:** [@Yoshi\_Morales](https://forum.babylonjs.com/u/Yoshi_Morales)\
**Replies:** 4\
**Last updated:** [December 28, 2023, 9:18am UTC](https://forum.babylonjs.com/t/ios-browser-memory-leak/46746 "2023-12-28T09:18:53Z")

</div>

Has anyone noticed that even on Latest version iOS/ babylon is crashing due memory leak, if you start any babylon app and it runs, then reaload a couple of times, or change the web to another babylon app, the browser mem…

---

## [How to avoid memory leaks caused by NodeMaterial](https://forum.babylonjs.com/t/how-to-avoid-memory-leaks-caused-by-nodematerial/42895)

<div class="topic-metadata">

**Author:** [@hazardtriigger](https://forum.babylonjs.com/u/hazardtriigger)\
**Replies:** 11\
**Last updated:** [August 24, 2023, 5:25am UTC](https://forum.babylonjs.com/t/how-to-avoid-memory-leaks-caused-by-nodematerial/42895 "2023-08-24T05:25:53Z")

</div>

Through the memory analysis tool of the chrome browser, I found that NodeMaterial repeatedly calls the isReadyForSubMesh method in the rendering loop, causing an unknown memory leak. I was wondering if any of you have…

---

## [Ground size limits](https://forum.babylonjs.com/t/ground-size-limits/42089)

<div class="topic-metadata">

**Author:** [@Marcello\_Fabbiani](https://forum.babylonjs.com/u/Marcello_Fabbiani)\
**Replies:** 2\
**Last updated:** [July 1, 2023, 8:38pm UTC](https://forum.babylonjs.com/t/ground-size-limits/42089 "2023-07-01T20:38:42Z")

</div>

I am testing how to create the maximum ground size as possible, I am working on a game that requires a huge map msfs1992.github.io So far i added 562.500 m2 of heightmap area, and is nice, the memory capacity support …
