# Demo app babylonjs native

**URL:** <https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314>\
**Category:** Demos and projects\
**Created:** [January 8, 2021, 5:11pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314 "2021-01-08T17:11:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 5:11pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/1 "2021-01-08T17:11:50Z")

</div>

Here’s a demo app with babylonjs native, no interactivity yet

link: [https://cdn.glitch.com/832401c3-8cbf-42db-acce-98209736affc%2FdemoBabylonjs.apk?v=1610125675916](https://cdn.glitch.com/832401c3-8cbf-42db-acce-98209736affc%2FdemoBabylonjs.apk?v=1610125675916)

screenshot:

 ![Screenshot_20210108-114934_Babylon Native Playground](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/9/971a1d70f325a13650bdc77a8a76a83d87652044.jpeg)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 8, 2021, 5:58pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/2 "2021-01-08T17:58:21Z")

</div>

I bet @bghgary will like it!

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 6:24pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/3 "2021-01-08T18:24:56Z")

</div>

babylon native is the future for mobile games

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 8:16pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/4 "2021-01-08T20:16:23Z")

</div>

How can I not like this? 🙂

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 8:23pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/5 "2021-01-08T20:23:02Z")

</div>

I just get the background though. I don’t see the character. 😕

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 8:35pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/6 "2021-01-08T20:35:12Z")

</div>

it takes some time for the model to load, took around 1 minute for me on a rusty android tablet

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 8:39pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/7 "2021-01-08T20:39:16Z")

</div>

Is it a debug build? Do you know why it’s so slow?

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 9:09pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/8 "2021-01-08T21:09:46Z")

</div>

it is not a debug build and honestly I have no idea why it’s that slow,  
here’s the model url:  
[https://cdn.glitch.com/81c23426-9d40-44fa-821a-5284243cd7a7%2Fsubmariner.gltf?v=1579822070355](https://cdn.glitch.com/81c23426-9d40-44fa-821a-5284243cd7a7%2Fsubmariner.gltf?v=1579822070355)

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 9:12pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/9 "2021-01-08T21:12:20Z")

</div>

It’s probably downloading it or it could be the base64 encoded buffer in the gltf.

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 9:18pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/10 "2021-01-08T21:18:23Z")

</div>

is there any way to solve that?

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 9:19pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/11 "2021-01-08T21:19:45Z")

</div>

The downloading part, no. We might look into caching which will help on subsequent launches. For the base64 encoding, just use a GLB 🙂

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 9:20pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/12 "2021-01-08T21:20:45Z")

</div>

Ideally, the app should include the asset in the android package without downloading it at all.

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 9:22pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/13 "2021-01-08T21:22:14Z")

</div>

Thanks 🙂!  
I will fix the app asap and post an update

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 9:23pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/14 "2021-01-08T21:23:40Z")

</div>

You can use `app:///<resource path>` to access package resources.

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 10:08pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/15 "2021-01-08T22:08:22Z")

</div>

quite still the same load time

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 11:33pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/17 "2021-01-08T23:33:45Z")

</div>

Interesting… Does this asset load fast in a browser on the same device?

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 11:34pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/18 "2021-01-08T23:34:47Z")

</div>

yes it loads fast

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 8, 2021, 11:38pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/19 "2021-01-08T23:38:55Z")

</div>

Do you mind filing an issue on Babylon Native repo? We’ll have to investigate why it’s slow.

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 8, 2021, 11:49pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/20 "2021-01-08T23:49:40Z")

</div>

sure i will do that now

---

<div class="post-metadata">

**Author:** ![waverider404](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/waverider404/32/17464_2.png) [@waverider404](https://forum.babylonjs.com/u/waverider404)\
**Post date:** [January 13, 2021, 6:14pm UTC](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314/21 "2021-01-13T18:14:36Z")

</div>

I believe it was the device I tested it on, I run the same apk on another device, it loads almost immediately

[Next page](https://forum.babylonjs.com/t/demo-app-babylonjs-native/17314.md?page=2)
