Jump to content

Advanced Dynamic Texture Questions


DylanD
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...