Hagop

Performance of Babylon.js on mobiles

Recommended Posts

I have a heavy load Babylon scene (all meshes are optimized), which runs sufficiently well on desktops and tablets. The same site is slugish, slow or does not run at all on many mobiles when accesing through the mobiles browsers. I guess this is pretty normal since mobile GPUs are not as powerful as let's say tablets' GPU. So I guess the best thing to do is to test if the site is being accessed by a mobile device and divert the user to a mirror site where the textures are of lesser quality and the mesh sizes are smaller. Is that a correct solution? Is there any other ways of boosting performance

Secondly, will  wrapping the site into a Mobile app such as Cordova boost performance as compared to accessing the site through the mobiles'  browser? Has anybody had experience with Windows apps running Babylon.js and were there any performance gains?

 

Share this post


Link to post
Share on other sites

Cordova is still the equivalent of running a chromium tab, if not slightly slower. The only performance boost you'd get is that you wouldn't have to serve the scene files from a server necessarily.

Share this post


Link to post
Share on other sites

snupas,

5 hours ago, snupas said:

Cordova is still the equivalent of running a chromium tab, if not slightly slower. The only performance boost you'd get is that you wouldn't have to serve the scene files from a server necessarily.

Do you mean that the scene will be downloaded when running through a mobile app. So an app  useless in case the scene is updated periodically?

Share this post


Link to post
Share on other sites

You won't have any performance gain running inside an app (Cordova or Hosted Web App) as it's exact the same JavaScript and rendering engine used via the webview.

As you said, you have to consider that a mobile has a potential less powerful GPU but it's really more on the memory side you'll have trouble as well as CPU. For instance my iPhone 6s has a more powerful GPU than my laptop running a i7 with the embed GPU! 

As @deltakosh said, try our Sponza demo, it runs well on most of the recent smartphones.

David 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.