DylanD Posted July 31, 2018 Share Posted July 31, 2018 Hello everyone I have a few questions about the BABYLON.GUI.advancedDynamicTexture(""); here is an example of me creating a scene e.g.: initScene(){ ... ver gui = BABYLON.GUI.advancedDynamicTexture("GUI"); ... return scene } scene = initScene(); scene.dispose(); 1: would it also dispose the advancedDynamicTexture? 2: would be better for performance if I only used one advancedDynamicTexture over all of my scenes, if it would be how big of a difference? 3:how much does adding extra Gui buttons, images, and text affect performance? Thanks for your time everyone! Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted July 31, 2018 Share Posted July 31, 2018 http://www.babylonjs-playground.com/#3VMTI9#13 Yes DylanD 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 31, 2018 Share Posted July 31, 2018 1. Yes as long as you give your scene in the ADT constructor 2. You can't actually. ADT are linked to a scene 3. They affect performance ONLY if something change. If your UI is static then it is almost invisible DylanD 1 Quote Link to comment Share on other sites More sharing options...
DylanD Posted July 31, 2018 Author Share Posted July 31, 2018 40 minutes ago, Deltakosh said: 1. Yes as long as you give your scene in the ADT constructor 2. You can't actually. ADT are linked to a scene 3. They affect performance ONLY if something change. If your UI is static then it is almost invisible so if I used it to update score that would be performance costing or not really. 1: I didn't know that, that might be where my memory leak is! Quote Link to comment Share on other sites More sharing options...
Guest Posted July 31, 2018 Share Posted July 31, 2018 not really, you should be fine! Quote Link to comment Share on other sites More sharing options...
DylanD Posted July 31, 2018 Author Share Posted July 31, 2018 4 minutes ago, Deltakosh said: not really, you should be fine! Thanks! 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.