# Mega Chunks - get started?

**URL:** <https://forum.babylonjs.com/t/mega-chunks-get-started/63513>\
**Category:** Questions\
**Tags:** webgpu, optimization, browser, gpu, game-dev\
**Created:** [May 20, 2026, 6:55pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513 "2026-05-20T18:55:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![c4cc](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/c4cc/32/50481_2.png) [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Post date:** [May 20, 2026, 6:55pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/1 "2026-05-20T18:55:13Z")

</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 you want the benefits of fewer meshes without the penalties of a single giant mesh, you change the size of your chunks. Instead of small 16 \times 16 \times 16 chunks, scale up to **Mega-Chunks** (64 \times 64 \times 64 or 128 \times 128 \times 128).

This drastically reduces total active mesh count for Babylon.js to manage, keeps frustum culling active, and restricts vertex updates to a localized zone when a block breaks.

Would you like to explore how to **merge smaller meshes together** cleanly using Babylon’s built-in tools for a static map, or look into the **exact math behind greedy meshing** to shrink your vertex count?"

Is merging small meshes together or exact math behind greedy meshing able to “Mega Chunk”?

I know Babylon.js talks about chunking, but anywhere to get started regarding Mega Chunks?

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 21, 2026, 9:18am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/2 "2026-05-21T09:18:04Z")

</div>

I don’t know what mega chunks is. Even less in the context of Baylon.

For performance optimization, did you check this page? [Babylon.js docs](https://doc.babylonjs.com/features/featuresDeepDive/scene/optimize_your_scene)

---

<div class="post-metadata">

**Author:** ![inteja](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/inteja/32/22553_2.png) [@inteja](https://forum.babylonjs.com/u/inteja)\
**Post date:** [May 21, 2026, 9:51am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/3 "2026-05-21T09:51:46Z")

</div>

I thought it was just me - never heard of mega chunks either … 😄

---

<div class="post-metadata">

**Author:** ![c4cc](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/c4cc/32/50481_2.png) [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Post date:** [May 21, 2026, 9:55am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/4 "2026-05-21T09:55:05Z")

</div>

Yes I did read [that page](https://doc.babylonjs.com/features/featuresDeepDive/scene/optimize_your_scene), I just decided to google up “Can Babylon.js develop large web browser games the size of GTA5, especially for mobile web browser”, and this came up when talking about Voxel Engine Babylon.js

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/SJWQfmrr)**

I couldn’t find chunking in that Babylon.js optimization page. Where do I start to learn that chunking?

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 21, 2026, 10:00am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/5 "2026-05-21T10:00:00Z")

</div>

do you have a link to the web page that mention mega chunks with Babylon?

---

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [May 21, 2026, 10:37am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/6 "2026-05-21T10:37:32Z")

</div>

Maybe you want to talk about that for chunking ?  
`ground.optimize(8);`

`optimize(chunksCount: number, octreeBlocksSize?: number)`

> This function will divide the mesh into submeshes and update an octree to help to select the right submeshes for rendering, picking and collision computations. Please note that you must have a decent number of submeshes to get performance improvements when using an octree.

> **[Babylon.js docs](https://doc.babylonjs.com/typedoc/classes/_babylonjs_core.GroundMesh#optimize)**

---

<div class="post-metadata">

**Author:** ![c4cc](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/c4cc/32/50481_2.png) [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Post date:** [May 21, 2026, 2:32pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/7 "2026-05-21T14:32:12Z")

</div>

What Google AI mentioned in the convo:

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/xqX6jJkr)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/nsLvdg7K)**

The rest of the convo starting here

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/DSvfLTkN)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/DSvfLTkN)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/TyZX78FY)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/7GgjK5SJ)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/xcCn1PKw)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/kVNkcVQB)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/WFbfw5pH)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/xqX6jJkr)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/nsLvdg7K)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/Mc4j9Tzq)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/34mW9FLc)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/jnRqc0nw)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/MXw7c9pW)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/N9cHH0YR)**

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 21, 2026, 2:39pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/8 "2026-05-21T14:39:18Z")

</div>

Did you check this : [Babylon.js docs](https://doc.babylonjs.com/features/featuresDeepDive/geospatial/loading3dTiles/)

---

<div class="post-metadata">

**Author:** ![c4cc](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/c4cc/32/50481_2.png) [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Post date:** [May 21, 2026, 3:48pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/9 "2026-05-21T15:48:42Z")

</div>

Currently, hopefully it will enable large web browser games the size of GTA 5 on even mobile web browser, with maximum fps

---

<div class="post-metadata">

**Author:** ![c4cc](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/c4cc/32/50481_2.png) [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Post date:** [May 21, 2026, 3:49pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/10 "2026-05-21T15:49:32Z")

</div>

Thanks, hopefully this will enable large browser games the size of GTA 5 on even mobile web browsers

---

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [May 21, 2026, 3:57pm UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/11 "2026-05-21T15:57:30Z")

</div>

There are some possible optimizations in the field, but there are many other optimizations to be planned for Thinks of LOD, streaming, masking distant objects, making medium resolution textures and many other things.  
You have to plan many tricks to keep the performance correct and give acceptable results.  
A GTA 5 game is really hugely ambitious and for a single project or with 2 or 3 people is just impossible.  
But I don’t want to discourage you, you learn a lot with ambitious projects. I think that a “GTA Vice City” would already be more affordable, even if ambitious too.

---

<div class="post-metadata">

**Author:** ![c4cc](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/c4cc/32/50481_2.png) [@c4cc](https://forum.babylonjs.com/u/c4cc)\
**Post date:** [May 22, 2026, 9:18am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/13 "2026-05-22T09:18:25Z")

</div>

Do you guys think one render call is feasible?

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/30vtcbyS)**

> **[verg3d nokeyboarinputhere — Postimages](https://postimg.cc/B82DR9NQ)**

---

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [May 22, 2026, 9:42am UTC](https://forum.babylonjs.com/t/mega-chunks-get-started/63513/14 "2026-05-22T09:42:58Z")

</div>

It will be impossible. You can merge models with each other and reduce the number of render calls, but you will always have non-mergeable models. For example, your characters, you don’t want to merge them with the terrain. Some models need collision and others don’t…
