# Comparison between unity webGL and Babylon.js

**URL:** <https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861>\
**Category:** Questions\
**Created:** [June 23, 2023, 4:31am UTC](https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861 "2023-06-23T04:31:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NHD\_MA](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nhd_ma/32/33139_2.png) [@NHD\_MA](https://forum.babylonjs.com/u/NHD_MA)\
**Post date:** [June 23, 2023, 4:31am UTC](https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861/1 "2023-06-23T04:31:50Z")

</div>

Hello guys. I am trying to develop a metaverse website and came across babylon.js and unity webGL. Unity webGL have many features built-in with an editor but the main draw back I found was the build size and larger loading time which is significantly less in babylon.js. So which would be an optimal engine for webGL considering performace, memory usage, size and loading time.

---

<div class="post-metadata">

**Author:** ![nasimiasl](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nasimiasl/32/34_2.png) [@nasimiasl](https://forum.babylonjs.com/u/nasimiasl)\
**Post date:** [June 23, 2023, 5:39am UTC](https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861/2 "2023-06-23T05:39:47Z")

</div>

hey that depend your design but base on my understanding babylonjs can do optimizing more.

this is one of full metaverse sample [https://amground.com/](https://amground.com/)

---

<div class="post-metadata">

**Author:** ![NHD\_MA](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nhd_ma/32/33139_2.png) [@NHD\_MA](https://forum.babylonjs.com/u/NHD_MA)\
**Post date:** [June 23, 2023, 5:50am UTC](https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861/3 "2023-06-23T05:50:37Z")

</div>

Hi, Thanks for the reply. Actually I was using a framework called a-frame for building the website and the RAM usage exceeded almost 4GB. The issue I faced was that even if I remove the assets like glb models in the scene, RAM usage would never reduce. So I decided to skip the A-Frame. Does Babylon.js have such issues. I am completely new to both babylon and Unity. In unity, I saw in documentation that there is automatic unallocation of the memory.

---

<div class="post-metadata">

**Author:** ![nasimiasl](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nasimiasl/32/34_2.png) [@nasimiasl](https://forum.babylonjs.com/u/nasimiasl)\
**Post date:** [June 23, 2023, 12:54pm UTC](https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861/4 "2023-06-23T12:54:31Z")

</div>

i see the same issue in BAbylon but i am sure babylonjs dispose mesh dispose item from ram but i am not sure chorme make it free after dispose

anyway i guess you can test it easly with playground

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#JUKXQD)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

if you see the same isssue make post here We ( babylonjs forum team ) fix that

---

<div class="post-metadata">

**Author:** ![asalGH](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/asalgh/32/25875_2.png) [@asalGH](https://forum.babylonjs.com/u/asalGH)\
**Post date:** [June 23, 2023, 7:59pm UTC](https://forum.babylonjs.com/t/comparison-between-unity-webgl-and-babylon-js/41861/5 "2023-06-23T19:59:36Z")

</div>

Is there anyone who has experience with both? How different is the output of unity webgl vs babylonjs ?
