• Content Count

  • Joined

  • Last visited

About suresh1187

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Solved. I think , var background = new Layer("back", "image1.png", scene); is executed multi times,which leads to performance issue.
  2. Hi all, I face drastic drop in performance(fps), when i change the canvas background during runtime, e.g: engine.runRenderLoop(() => { if(this.state.counter == 2){ var background = new Layer("back", "image1.png", scene); } if(this.state.counter == 4){ var background = new Layer("back", "image2.png", scene); } if (scene) { scene.render(); } }); I have tried it using registerBeforeRender method, but i face the similar performance issue. Is there any other method to change the background during runtime without losing performance(fps). Note : i am using react-babylonjs package. Thanks, Suresh.