chicagobob123 Posted February 21, 2018 Share Posted February 21, 2018 I am looking at the Chrome Performance tool and according to it 34ms ==> BABYLON.GUI.AdvancedDynamicTexture.CreateForMesh(textMesh,120,40); I have to create 200. Any alternatives? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted February 22, 2018 Share Posted February 22, 2018 Isn't that just the creation? Shouldn't be that slow afterwards Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 22, 2018 Author Share Posted February 22, 2018 Thats the creation but I have 200 of them to make. Makes my load time crazy. Anyway to work around this? I am using this to make labels. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 22, 2018 Share Posted February 22, 2018 Hey CB, congrats on having the longest thread title EVER. Let's see... about 7-8 secs for 200 ADT's? Actually, that's probably expected, considering the amount of work/code/measurements it takes to create an ADT for each mesh. Have you tried adding all 200 textLabel to a SINGLE full-screen ADT, and then using textLabel.linkWithMesh for each? https://www.babylonjs-playground.com/#XCPP9Y#16 http://doc.babylonjs.com/how_to/gui#tracking-positions Can you give me a report on your speeds... using THAT method? (thx) GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 22, 2018 Author Share Posted February 22, 2018 Hey not a bad idea. i will separate it off and measure. I have so many fires at the moment Going to ask another question which will be is there a method to async swap a new texture? The new Async scene loader works so nicely I have this thing for wanting more detail the closer I get. So I was hoping to load new texture files on the fly Quote Link to comment Share on other sites More sharing options...
Guest Posted February 22, 2018 Share Posted February 22, 2018 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.