Jump to content

How to get optimization info from scene optimizer


Madclaws
 Share

Recommended Posts

Hi guys,

I am making a simple 3D endless game with primitive shapes(5 cubes and 1 sphere).But the game is running on 30 FPS in mid-range phone.When i use scene optimizer with moderate degredation,after some time fps increases to 60.But how do i know what was the issue for game lag,So that i can fix it later.

Link to comment
Share on other sites

Hello!

the moderate options are described here: https://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer#options

For a live update on what is going on, you can use this:

SceneOptimizer.OptimizeAsync(...).onNewOptimizationAppliedObservable.add(function(option) {

});

https://doc.babylonjs.com/api/classes/babylon.sceneoptimizer#onnewoptimizationappliedobservable

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...