Search the Community
Showing results for tags 'registerbeforerender'.
-
I need to make custom operations before or after the render and it works nicely on Chrome and Firefox (tested in windows), also works nice on Android but you cannot move the camera in iPhone here are the mandatory examples Non-working https://www.babylonjs-playground.com/#7FJNSA Working (just commented out the registerBeroreRender) https://www.babylonjs-playground.com/#7FJNSA#1 Any tip on this? Thank you in advance. Btw: most of my code is based on an example that a user posted in the forum but I cannot longer find the post to make a proper attribution sorry!
-
Is there a performance impact of calling MANY 'scene.registerBeforeRender' for each scene component could be hundreds OR should there be ONE BIG scene.registerBeforeRender and i maintain my own array of scene components i want to 'tick' along and loop thru my array calling 'myobject.update' i would much rather not have to maintain an array of scene components for ticking and simple call: scene.registerBeforeRender(myobject.update) and scene.unregisterBeforeRender(myobject.update) for each and every scene component i am going to have??? Thanks for the info