syed samoon

Members
  • Content count

    139
  • Joined

  • Last visited

About syed samoon

  • Rank
    Advanced Member

Recent Profile Visitors

1,005 profile views
  1. i want to make the player goes inside the ring
  2. syed samoon

    Make gameplay smoother

    sorry i don't know how to create a PG
  3. syed samoon

    Make gameplay smoother

    anybody else to help me
  4. syed samoon

    Make gameplay smoother

    is this right??
  5. syed samoon

    Make gameplay smoother

    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(); });
  6. syed samoon

    Make gameplay smoother

    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.
  7. syed samoon

    Make gameplay smoother

    is this right...
  8. syed samoon

    Make gameplay smoother

    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;
  9. syed samoon

    Make gameplay smoother

    is there anything wrong in this optimization
  10. syed samoon

    Make gameplay smoother

    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(); });
  11. syed samoon

    Remove the layout of physics editor

    hello any buddy have solution for this issue
  12. syed samoon

    Make gameplay smoother

    any buddy have an idea about this??
  13. syed samoon

    Remove the layout of physics editor

    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
  14. syed samoon

    Make gameplay smoother

    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;
  15. syed samoon

    Make gameplay smoother

    Hi Everyone, How to move a object smoothly with deltaTime? Thank you