syed samoon

Members
  • Content Count

    139
  • Joined

  • Last visited

About syed samoon

  • Rank
    Advanced Member

Recent Profile Visitors

1423 profile views
  1. var priority = 0; var options = new BABYLON.SceneOptimizerOptions(_this.init.frameTarget, 1000); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 1)); options.addOptimization(new BABYLON.TextureOptimization(2, 1024)); options.addOptimization(new BABYLON.RenderTargetsOptimization(1)); options.addOptimization(new BABYLON.PostProcessesOptimization(1)); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 2)); options.addOptimization(new BABYLON.TextureOptimization(2, 512)); options.addOptimization(new BABYLON.RenderTargetsOptimization(2)); options.addOptimization(new BABYLON.PostProcessesOptimization(2)); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 3)); options.addOptimization(new BABYLON.TextureOptimization(2, 256)); options.addOptimization(new BABYLON.RenderTargetsOptimization(3)); options.addOptimization(new BABYLON.PostProcessesOptimization(3)); var optimizer = new BABYLON.SceneOptimizer(_this.init.scene, options); optimizer.start(); // Wiring optimizer.onSuccessObservable.add(function () { console.log("optimization success"); _this.init.loadingProgress = 100; _this.init.engine.loadingUIText = Math.floor(_this.init.loadingProgress) + " %"; _this.init.engine.hideLoadingUI(); }); optimizer.onNewOptimizationAppliedObservable.add(function (optim) { console.log("optimizing"); }); optimizer.onFailureObservable.add(function () { console.log("optimization failed"); _this.init.loadingProgress = 100; _this.init.engine.loadingUIText = Math.floor(_this.init.loadingProgress) + " %"; _this.init.engine.hideLoadingUI(); });
  2. Hi Everyone, Can you help me.. if anyone have model script for optimizing the scene. https://www.babylonjs-playground.com/#3Q8PCL i can't understand this.
  3. var options = new BABYLON.SceneOptimizerOptions(_this.init.frameTarget, 1000); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 1)); options.addOptimization(new BABYLON.TextureOptimization(2, 1024)); _this.init.engine.setHardwareScalingLevel(1); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 1.5)); options.addOptimization(new BABYLON.TextureOptimization(2, 512)); _this.init.engine.setHardwareScalingLevel(1.5); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 2)); options.addOptimization(new BABYLON.TextureOptimization(2, 256)); _this.init.engine.setHardwareScalingLevel(2); var optimizer = new BABYLON.SceneOptimizer(_this.init.scene, options); optimizer.start(); // Wiring optimizer.onSuccessObservable.add(function () { console.log("optimization success"); _this.init.loadingProgress = 100; _this.init.engine.loadingUIText = Math.floor(_this.init.loadingProgress) + " %"; _this.init.engine.hideLoadingUI(); }); optimizer.onNewOptimizationAppliedObservable.add(function (optim) { console.log("optimizing"); }); optimizer.onFailureObservable.add(function () { console.log("optimization failed"); _this.init.loadingProgress = 100; _this.init.engine.loadingUIText = Math.floor(_this.init.loadingProgress) + " %"; _this.init.engine.hideLoadingUI(); }); _this.init.optimized = true;
  4. is there anything wrong in this optimization
  5. i was optimized with this below script var priority = 0; var options = new BABYLON.SceneOptimizerOptions(_this.frameTarget, 1000); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 1)); options.addCustomOptimization(function () { _this.engine.setHardwareScalingLevel(0.5); return true; }, function () { return "Turning mirror off"; }); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 1.5)); options.addCustomOptimization(function () { _this.engine.setHardwareScalingLevel(1.5); return true; }, function () { return "Turning ground off"; }); options.addOptimization(new BABYLON.HardwareScalingOptimization(0, 2)); options.addCustomOptimization(function () { _this.init.engine.setHardwareScalingLevel(2); return true; }, function () { return "Turning ground off"; }); var optimizer = new BABYLON.SceneOptimizer(_this.init.scene, options); optimizer.start(); // Wiring optimizer.onSuccessObservable.add(function () { console.log("optimization success"); _this.init.loadingProgress = 100; _this.init.engine.loadingUIText = Math.floor(_this.init.loadingProgress) + " %"; _this.init.engine.hideLoadingUI(); }); optimizer.onNewOptimizationAppliedObservable.add(function (optim) { console.log("optimizing"); }); optimizer.onFailureObservable.add(function () { console.log("optimization failed"); _this.init.loadingProgress = 100; _this.init.engine.loadingUIText = Math.floor(_this.init.loadingProgress) + " %"; _this.init.engine.hideLoadingUI(); });
  6. hello any buddy have solution for this issue
  7. Hi Everyone, i'm using physics editor software for apply p2 physic in phaser. i will apply the JSON in phaser game.load.physics('Physics', 'assets/sprites/newSize.json'); but i will get this layour in my png how to hide the marked area of the JSON
  8. Hi @RaananW in my game i got 38 FPS in mobile but still the gameplay was slow. my friend suggest me to use deltaTime so what i'm asking this. in my script var speed = 5; player.position.z += speed;
  9. Hi Everyone, How to move a object smoothly with deltaTime? Thank you