Madclaws Posted November 13, 2018 Share Posted November 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 13, 2018 Share Posted November 13, 2018 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 Quote Link to comment Share on other sites More sharing options...
Madclaws Posted November 14, 2018 Author Share Posted November 14, 2018 (edited) @Deltakosh Thanks for the tips. So i think actually meshes was not the problem.I am getting 60 FPS ,when "SETTING HARDWARE SCALING LEVEL TO 2.25".Can somebody explain what this message means? Edited November 14, 2018 by Madclaws had to change reference image Quote Link to comment Share on other sites More sharing options...
Guest Posted November 14, 2018 Share Posted November 14, 2018 So this is an equivalent to calling engine.setHardwareScalingLevel(0.25). This is really useful on mobile where the fillrate is limited. This function will ask the engine to render at 1/4 of the current mobile resolution ParadoxMaster and Madclaws 2 Quote Link to comment Share on other sites More sharing options...
Madclaws Posted November 16, 2018 Author Share Posted November 16, 2018 @Deltakosh Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.