• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

Any way to remove a label?

AidanM

New Member
Obviously there is ac.addLabel() to create a label. What about removing one? I don't see anything.

I see the ac.setVisible(lable, 0) option, and have seen somewhere also people positioning a label offscreen, but neither seems satisfactory, especially if labels need to be created and removed a lot, which is what I am doing.
 

AidanM

New Member
Yep ok, thanks.

I can re-use but its still not great. Say if you want to temporarily show a table of 10 x 5 entries and then turn it off, the game will always loop through those 50 hidden labels. Is that performance heavy? Or not something to worry about?

"don't create a label" - do you mean doing your own text rendering? This would mean loading a font manually I presume, which seems a bit of a waste of resources and load time.
 

fughettaboutit

aka leBluem
Yep ok, thanks.

I can re-use but its still not great. Say if you want to temporarily show a table of 10 x 5 entries and then turn it off, the game will always loop through those 50 hidden labels. Is that performance heavy? Or not something to worry about?

"don't create a label" - do you mean doing your own text rendering? This would mean loading a font manually I presume, which seems a bit of a waste of resources and load time.
Sure it would be heavy to update hidden stuff, you must also take care of that, remember visibility state, just dont update stuff, if no label visible.

No custom rendering needed, althought with CSP functions you can do, see TrackHeight app, uses ac.ext_glFontCreate ...
 
Last edited:

AidanM

New Member
Sure it would be heavy to update hidden stuff, remember visibility state, you must also take care of that, just dont update stuff, if no label visible.
I meant does the game use up much frame rate time calling 50+ visibility checks on hidden labels, or again is it not something to worry about.

Good to know about those CSP functions - I wasn't aware of them.
 

fughettaboutit

aka leBluem
When not updated then lots of controls are no problem, especially with CSP, it has some optimization for that, kinda slow with vanilla
upload_2022-7-16_18-36-48.png

When hidden, then lots of controls should also be no problem for Vanilla AC.
 
Top