al404 Posted August 3, 2016 Share Posted August 3, 2016 Hi We are almost done with our project and I'm getting to scene optimization, I recorded timeline with chrome, even if most of the issue are on Android tablet iOS seems to handle things better even with less RAM on PC i recorded timeline and checked the example playground i fist looked at when i started the project http://playground.babylonjs.com/#2FPT1A#9 since in my timeline setParticles is showed, i guess, on each render i was wondering if that is correct in example linked above is inside createScene function ( as in my project ) so is called each time the render loop fires createScene I also have Synchronous alert by hand.min.js is that normal? we also have scene.registerBeforeRender inside createScene function, i found it in this playground http://playground.babylonjs.com/?13 i guess is correct but just checking :-) On Android tablet, Samsung tab S2 8", i guest page to crash and reload while loading contents. I use assetsManager. With remote console on chrome i can't see any error i just get a disconnected error when tab crash and reload itself Quote Link to comment Share on other sites More sharing options...
jerome Posted August 3, 2016 Share Posted August 3, 2016 each frame, all the methods registered with scene.registerBeforeRender() are called each once. This is the place where you should implement your game logic. You don't need to call createScene() each frame obviously Quote Link to comment Share on other sites More sharing options...
al404 Posted August 3, 2016 Author Share Posted August 3, 2016 sorry, my fault i don't call scene = createScene(); inside render loop but before 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.