# \#optimization

**URL:** https://forum.babylonjs.com/tag/optimization/83.md

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

---

## [Mega Chunks - get started?](https://forum.babylonjs.com/t/mega-chunks-get-started/63513)

<div class="topic-metadata">

**Author:** [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Replies:** 12\
**Last updated:** [May 22, 2026, 9:42am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513 "2026-05-22T09:42:58Z")

</div>

Pardon my stupid question, but how do I get started for Mega Chunks? I tried to search high and low in the forums yet could not find any suitable answer. According to Google AI " The Ideal Compromise: Mega-Chunks If y…

---

## [No information anywhere about optimizeIndicesAsync function. how to use it?](https://forum.babylonjs.com/t/no-information-anywhere-about-optimizeindicesasync-function-how-to-use-it/61455)

<div class="topic-metadata">

**Author:** [@TooCalm](https://forum.babylonjs.com/u/TooCalm)\
**Replies:** 9\
**Last updated:** [November 20, 2025, 3:26am UTC](https://forum.babylonjs.com/t/no-information-anywhere-about-optimizeindicesasync-function-how-to-use-it/61455 "2025-11-20T03:26:23Z")

</div>

Hi i found a function which updates indices of a mesh inside babylon engine. Looks like it affects performance. optimizeIndicesAsync(); looks like it was introduced here Questions about onPointerObservable - #11 by De…

---

## [Optimizing lots of meshes with limitations](https://forum.babylonjs.com/t/optimizing-lots-of-meshes-with-limitations/61102)

<div class="topic-metadata">

**Author:** [@Teych](https://forum.babylonjs.com/u/Teych)\
**Replies:** 6\
**Last updated:** [October 23, 2025, 9:13pm UTC](https://forum.babylonjs.com/t/optimizing-lots-of-meshes-with-limitations/61102 "2025-10-23T21:13:33Z")

</div>

Babylon Version: 7.54 | WebGL Engine I am trying to give my scene a performance boost and am looking for any suggestions on how. I have an application that displays data sets of models. The problem is the number of mesh…

---

## [Choosing the optimal hardware for CPU-heavy scenes](https://forum.babylonjs.com/t/choosing-the-optimal-hardware-for-cpu-heavy-scenes/60924)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [October 15, 2025, 10:05am UTC](https://forum.babylonjs.com/t/choosing-the-optimal-hardware-for-cpu-heavy-scenes/60924 "2025-10-15T10:05:03Z")

</div>

I’m making hardware suggestions for consumers who use babylon.js to render some CPU-heavy scenes in real time, with thousands of meshes and animation channels, with bones, mirrors, shadows and post processes enabled. Ch…

---

## [Custom active mesh determining?](https://forum.babylonjs.com/t/custom-active-mesh-determining/59401)

<div class="topic-metadata">

**Author:** [@Panuchka](https://forum.babylonjs.com/u/Panuchka)\
**Replies:** 8\
**Last updated:** [July 11, 2025, 10:48am UTC](https://forum.babylonjs.com/t/custom-active-mesh-determining/59401 "2025-07-11T10:48:51Z")

</div>

Hi everyone! Quick question; I am trying to optimize my server code once again for cpu usage. It is a bit difficult since with Bun I cannot get a debug inspect mode that I used to rely on with Node. Also JavaScriptCode …

---

## [About PainterSortCompare method](https://forum.babylonjs.com/t/about-paintersortcompare-method/42248)

<div class="topic-metadata">

**Author:** [@KevinWu](https://forum.babylonjs.com/u/KevinWu)\
**Replies:** 3\
**Last updated:** [July 3, 2025, 11:18am UTC](https://forum.babylonjs.com/t/about-paintersortcompare-method/42248 "2025-07-03T11:18:34Z")

</div>

// packages/dev/core/src/Rendering/renderingGroup.ts public static PainterSortCompare(a: SubMesh, b: SubMesh): number { const meshA = a.getMesh(); const meshB = b.getMesh(); if (meshA.mat…

---

## [Best Practices for Optimizing Babylon.js Scenes (not just) on Lower-End Devices](https://forum.babylonjs.com/t/best-practices-for-optimizing-babylon-js-scenes-not-just-on-lower-end-devices/58688)

<div class="topic-metadata">

**Author:** [@roland](https://forum.babylonjs.com/u/roland)\
**Replies:** 27\
**Last updated:** [May 31, 2025, 3:14pm UTC](https://forum.babylonjs.com/t/best-practices-for-optimizing-babylon-js-scenes-not-just-on-lower-end-devices/58688 "2025-05-31T15:14:41Z")

</div>

Hey! When creating the engine (use WebGPU is available) ask for a high-performance device. Drains more battery power but who cares if it’s a game?! :smiley: new WebGPUEngine(canvas, { powerPreference: "high-perfor…

---

## [I am using scene Optimizer for performance improvement, but it reduces the glow layer intensity from the scene](https://forum.babylonjs.com/t/i-am-using-scene-optimizer-for-performance-improvement-but-it-reduces-the-glow-layer-intensity-from-the-scene/52101)

<div class="topic-metadata">

**Author:** [@Siddhant](https://forum.babylonjs.com/u/Siddhant)\
**Replies:** 4\
**Last updated:** [July 25, 2024, 4:24pm UTC](https://forum.babylonjs.com/t/i-am-using-scene-optimizer-for-performance-improvement-but-it-reduces-the-glow-layer-intensity-from-the-scene/52101 "2024-07-25T16:24:33Z")

</div>

const optimizerOptions = new BABYLON.SceneOptimizerOptions(30, 2000); // Add specific optimizations without affecting glow optimizerOptions.optimizations.push( new BABYLON.HardwareScalingOptimization(0, 1), new BABYL…

---

## [Babylon on Quest 2](https://forum.babylonjs.com/t/babylon-on-quest-2/50830)

<div class="topic-metadata">

**Author:** [@frank71](https://forum.babylonjs.com/u/frank71)\
**Replies:** 3\
**Last updated:** [May 30, 2024, 12:54pm UTC](https://forum.babylonjs.com/t/babylon-on-quest-2/50830 "2024-05-30T12:54:18Z")

</div>

Hi all, I’d like to know what are the best method to launch a babylon project on a Quest 2. I think that the official way is via the oculus browser. But I’ve a ton of performance issue, also with babylon optimized demo…

---

## [Looking for any tips on optimizing this scene with thousands of meshes (Parthenon)](https://forum.babylonjs.com/t/looking-for-any-tips-on-optimizing-this-scene-with-thousands-of-meshes-parthenon/49681)

<div class="topic-metadata">

**Author:** [@flipperwaldt](https://forum.babylonjs.com/u/flipperwaldt)\
**Replies:** 10\
**Last updated:** [April 20, 2024, 2:07pm UTC](https://forum.babylonjs.com/t/looking-for-any-tips-on-optimizing-this-scene-with-thousands-of-meshes-parthenon/49681 "2024-04-20T14:07:22Z")

</div>

To begin with, unfortunately I can’t share a playground link since I don’t want to make my model freely available. I’ll post some screenshots at the end to give an idea about what I’m trying to do and the model but in sh…

---

## [Large models implementation](https://forum.babylonjs.com/t/large-models-implementation/47517)

<div class="topic-metadata">

**Author:** [@b-js](https://forum.babylonjs.com/u/b-js)\
**Replies:** 3\
**Last updated:** [January 27, 2024, 2:43am UTC](https://forum.babylonjs.com/t/large-models-implementation/47517 "2024-01-27T02:43:45Z")

</div>

Hello! I need some expert advice, I’m new to the 3D world :slight\_smile: We are implementing an online BIM model viewer; models consist of tens of thousands of mesh elements. Requirements: Select one element Select s…

---

## [SceneOptimizer improvement mode?](https://forum.babylonjs.com/t/sceneoptimizer-improvement-mode/43705)

<div class="topic-metadata">

**Author:** [@inteja](https://forum.babylonjs.com/u/inteja)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 10:54am UTC](https://forum.babylonjs.com/t/sceneoptimizer-improvement-mode/43705 "2023-08-31T10:54:01Z")

</div>

I’m a little confused about how the improvement mode of SceneOptimizer is supposed to operate. SceneOptimizer.isInImprovementMode can be set/changed, but even when true, \_currentPriorityLevel is only ever incremented (s…

---

## [Need help to understand drawcalls in my scene](https://forum.babylonjs.com/t/need-help-to-understand-drawcalls-in-my-scene/42295)

<div class="topic-metadata">

**Author:** [@mawa](https://forum.babylonjs.com/u/mawa)\
**Replies:** 17\
**Last updated:** [July 18, 2023, 2:44pm UTC](https://forum.babylonjs.com/t/need-help-to-understand-drawcalls-in-my-scene/42295 "2023-07-18T14:44:39Z")

</div>

Dears and then @Evgeni\_Popov , I’m facing an issue where I suddenly realized that I have an unreasonable number of draw calls in my scene. Point is I’m not ready to share the scene (I would like to keep with the WOW fac…

---

## [Long time for shader compilation from glb file](https://forum.babylonjs.com/t/long-time-for-shader-compilation-from-glb-file/41137)

<div class="topic-metadata">

**Author:** [@Dok11](https://forum.babylonjs.com/u/Dok11)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 12:44pm UTC](https://forum.babylonjs.com/t/long-time-for-shader-compilation-from-glb-file/41137 "2023-05-26T12:44:05Z")

</div>

I use SceneLoader.Append to import my glb file into scene. It contains many meshes with different materials, so their compilation takes a long time — from 1 sec on high end pc, up to 15 sec in Safari. Is it possible to …

---

## [Optimizing physics](https://forum.babylonjs.com/t/optimizing-physics/26180)

<div class="topic-metadata">

**Author:** [@Panuchka](https://forum.babylonjs.com/u/Panuchka)\
**Replies:** 34\
**Last updated:** [April 22, 2023, 10:41pm UTC](https://forum.babylonjs.com/t/optimizing-physics/26180 "2023-04-22T22:41:46Z")

</div>

Hi everyone! Once again a bit broad question about physics and optimizing. I’ve noticed that, surprise surprise, a large quantity of primitive physics shapes drag down the performance quite a bit. One of the curious thi…

---

## [Seems the Inspector weight too much?](https://forum.babylonjs.com/t/seems-the-inspector-weight-too-much/39765)

<div class="topic-metadata">

**Author:** [@Dok11](https://forum.babylonjs.com/u/Dok11)\
**Replies:** 6\
**Last updated:** [April 11, 2023, 8:38am UTC](https://forum.babylonjs.com/t/seems-the-inspector-weight-too-much/39765 "2023-04-11T08:38:10Z")

</div>

Without inspector the weight of my application (with babylonJS) total is 1.85 MB, but with these imports: import '@babylonjs/core/Debug/debugLayer'; import '@babylonjs/inspector'; it is 9.75 MB. Is it ok? Is it expect…

---

## [Animation sometimes can't play before the full scene loaded](https://forum.babylonjs.com/t/animation-sometimes-cant-play-before-the-full-scene-loaded/38818)

<div class="topic-metadata">

**Author:** [@gunpowderfans](https://forum.babylonjs.com/u/gunpowderfans)\
**Replies:** 5\
**Last updated:** [March 8, 2023, 1:20pm UTC](https://forum.babylonjs.com/t/animation-sometimes-cant-play-before-the-full-scene-loaded/38818 "2023-03-08T13:20:35Z")

</div>

Sorry I can’t give a sample in playground. My code is just like: import { Engine, Scene, SceneEventArgs } from 'react-babylonjs' import {} from '@babylonjs/core' const App: React.FC = () =\> { const createScene = fu…

---

## [Log utility to identify unoptimised assets](https://forum.babylonjs.com/t/log-utility-to-identify-unoptimised-assets/37852)

<div class="topic-metadata">

**Author:** [@mark\_nguyen](https://forum.babylonjs.com/u/mark_nguyen)\
**Replies:** 3\
**Last updated:** [February 3, 2023, 9:35am UTC](https://forum.babylonjs.com/t/log-utility-to-identify-unoptimised-assets/37852 "2023-02-03T09:35:43Z")

</div>

Hey Babylon Forum, Whilst the inspector is excellent for looking at texture sizes and mesh vertex count, it can be a little tedious to click through every object in the hierarchy and view its size/vertex count. Here’s …

---

## [Model Load Questions](https://forum.babylonjs.com/t/model-load-questions/36504)

<div class="topic-metadata">

**Author:** [@qkrxotn7287](https://forum.babylonjs.com/u/qkrxotn7287)\
**Replies:** 2\
**Last updated:** [December 27, 2022, 12:36am UTC](https://forum.babylonjs.com/t/model-load-questions/36504 "2022-12-27T00:36:43Z")

</div>

I’m making a metaverse now. However, it is difficult to load many models and wide maps. I need to ask you a few questions Which is more efficient when loading large quantities of models synchronously or asynchronousl…

---

## [Load one model hierarchy](https://forum.babylonjs.com/t/load-one-model-hierarchy/36502)

<div class="topic-metadata">

**Author:** [@qkrxotn7287](https://forum.babylonjs.com/u/qkrxotn7287)\
**Replies:** 2\
**Last updated:** [December 13, 2022, 6:18am UTC](https://forum.babylonjs.com/t/load-one-model-hierarchy/36502 "2022-12-13T06:18:29Z")

</div>

Is it possible to load one model divided by hierarchy? If you look at the picture below, it’ll be easier to understand ex) Human Mode (gltf, GLB) Model import flow

---

## [MSFT\_lod/, GLTF LOD Load Related Optimization](https://forum.babylonjs.com/t/msft-lod-gltf-lod-load-related-optimization/36131)

<div class="topic-metadata">

**Author:** [@qkrxotn7287](https://forum.babylonjs.com/u/qkrxotn7287)\
**Replies:** 11\
**Last updated:** [December 6, 2022, 7:09am UTC](https://forum.babylonjs.com/t/msft-lod-gltf-lod-load-related-optimization/36131 "2022-12-06T07:09:08Z")

</div>

It’s the literature I’ve been referring to Is there a way to automatically order the LOD in the gltf file? Do we need additional APIs or modules to load gltf of MSFT\_lod method? “https://playground.babylonjs.com/#…

---

## [Freeze Shader Material](https://forum.babylonjs.com/t/freeze-shader-material/34707)

<div class="topic-metadata">

**Author:** [@PichouPichou](https://forum.babylonjs.com/u/PichouPichou)\
**Replies:** 3\
**Last updated:** [October 12, 2022, 4:12pm UTC](https://forum.babylonjs.com/t/freeze-shader-material/34707 "2022-10-12T16:12:05Z")

</div>

Hello, BabylonJS community, It has been a while since I haven’t posted here and it feels like I am reaching a friend to know what’s up! :hugs: The reason I didn’t post is because on the whole BabylonJS works perfectly …

---

## [Why are disabled meshes checked in Scene.isReady()?](https://forum.babylonjs.com/t/why-are-disabled-meshes-checked-in-scene-isready/33532)

<div class="topic-metadata">

**Author:** [@fchoisy](https://forum.babylonjs.com/u/fchoisy)\
**Replies:** 2\
**Last updated:** [September 6, 2022, 9:42am UTC](https://forum.babylonjs.com/t/why-are-disabled-meshes-checked-in-scene-isready/33532 "2022-09-06T09:42:36Z")

</div>

Hello, Since this PR from May (Still test disable meshes because gltf loaders them them on later by deltakosh · Pull Request #12487 · BabylonJS/Babylon.js · GitHub), the isReady method of the Scene class checks the read…

---

## [Is there available to get intersectsMesh with using of octree?](https://forum.babylonjs.com/t/is-there-available-to-get-intersectsmesh-with-using-of-octree/32829)

<div class="topic-metadata">

**Author:** [@Dok11](https://forum.babylonjs.com/u/Dok11)\
**Replies:** 5\
**Last updated:** [August 8, 2022, 1:49pm UTC](https://forum.babylonjs.com/t/is-there-available-to-get-intersectsmesh-with-using-of-octree/32829 "2022-08-08T13:49:21Z")

</div>

I did not found suitable method with Octree to get interectsMesh. As I guess it should be possible to use octree optimization for interectsMesh. I have a scene with a lot of meshes, and when I run interectsMesh() to eve…

---

## [Rendering 50k - 100k submeshes for babylon Mesh is taking time](https://forum.babylonjs.com/t/rendering-50k-100k-submeshes-for-babylon-mesh-is-taking-time/30323)

<div class="topic-metadata">

**Author:** [@SUBRATA\_BHATTACHARJE](https://forum.babylonjs.com/u/SUBRATA_BHATTACHARJE)\
**Replies:** 11\
**Last updated:** [May 16, 2022, 1:59pm UTC](https://forum.babylonjs.com/t/rendering-50k-100k-submeshes-for-babylon-mesh-is-taking-time/30323 "2022-05-16T13:59:21Z")

</div>

I am trying to create a custom mesh with 50k - 100k submeshes and my code looks something like this, var mesh = new BABYLON.Mesh(‘new-mesh’,scene); var vData = new BABYLON.VertexData(); vData.positions = Array of posi…

---

## [Scene performance debugging: Sandbox vs Local Framerate difference](https://forum.babylonjs.com/t/scene-performance-debugging-sandbox-vs-local-framerate-difference/28142)

<div class="topic-metadata">

**Author:** [@bariscc](https://forum.babylonjs.com/u/bariscc)\
**Replies:** 3\
**Last updated:** [March 5, 2022, 12:08am UTC](https://forum.babylonjs.com/t/scene-performance-debugging-sandbox-vs-local-framerate-difference/28142 "2022-03-05T00:08:35Z")

</div>

Hello, I’m working with a single model, and I noticed some differences with my local server and sandbox, both using the same version of BabylonJS. I’m consistently getting ~10fps (30%) less on local server. Using same .…

---

## [Simplify mesh via approximation algorithm](https://forum.babylonjs.com/t/simplify-mesh-via-approximation-algorithm/27814)

<div class="topic-metadata">

**Author:** [@arcman7](https://forum.babylonjs.com/u/arcman7)\
**Replies:** 15\
**Last updated:** [April 1, 2022, 7:15pm UTC](https://forum.babylonjs.com/t/simplify-mesh-via-approximation-algorithm/27814 "2022-04-01T19:15:11Z")

</div>

Apologizing in advance if this is already covered in the docs and I just missed it or haven’t used the right search term. I want to simply my rendered meshes with an approximation algorithm like this https://doc.cgal.o…

---

## [Getting Performance Indicators](https://forum.babylonjs.com/t/getting-performance-indicators/28495)

<div class="topic-metadata">

**Author:** [@ldogg](https://forum.babylonjs.com/u/ldogg)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 12:56pm UTC](https://forum.babylonjs.com/t/getting-performance-indicators/28495 "2022-03-17T12:56:28Z")

</div>

Hey everyone! I’m keen to collect a bunch of performance indicators that I can print out for testing purposes. In particular, I’m looking for the following info: Target pixel density/ratio (e.g. value of 0.5 = half res…

---

## [Determining NullEngine fps](https://forum.babylonjs.com/t/determining-nullengine-fps/25516)

<div class="topic-metadata">

**Author:** [@Panuchka](https://forum.babylonjs.com/u/Panuchka)\
**Replies:** 17\
**Last updated:** [November 24, 2021, 7:04pm UTC](https://forum.babylonjs.com/t/determining-nullengine-fps/25516 "2021-11-24T19:04:07Z")

</div>

Hi everyone! Just a quick question about the best way to determine NullEngine fps. I just would like to assure that the engine runs in a stable fps all the time… Not sure if the best way is to console log the engine.get…
