Babylon UI Performance vs DOM elements

Hey all,

I’ve seen some of the new UI editor features and native deployment capabilities. So, I’m wondering:

  1. Can you export to native apps and include the DOM elements? (For example, I currently use HTML buttons/divs for my inventory slots, etc.)
  2. How the performance of BJS UI stands against using DOM elements?

cc @Cedric

There is no DOM in Babylon Native. So no performance check :slight_smile:

But with Babylon React Native, you can have react GUI elements and babylon.js engine.


Gotcha. I figured DOM wouldn’t be in native, but still wondering if using the Babylon GUI system would be performant compared to DOM elements in browser?

That’s a bit hard to answer. It depends on the situation. In some Babylon Native situations, JIT is not enabled and will have a performance issues if you run a lot of JS (i.e., have lots of objects in the scene, including GUI elements). Furthermore, GUI support in Babylon Native is experimental right now, so keep that in mind.

1 Like

Hi there @morterra just checking in, was your question answered? :smiley:

No, just gonna not bother messing with it