Cabbage Logo
Back to Cabbage Site

Initialize sw without performance clutter

Here’s an all round trigger I use for setting up all initialization, e.g. gui elements organizing. :

gktGeneral times ; read time

if gktGeneral <= 1 then ; set necessary timing to get everything set up, for now remained under 1 sec
gkTrigGeneral = 1
else
gkTrigGeneral = 0
endif

; here we go

cabbageSet gkTrigGeneral, “checkBoxSizes”, “bounds”, … , … , … , …

;----------------------------------------------------------------------------------------------------------------------------------------

I don’t know what’s the approved way of doing this or how the geeks do it, but it worked for me so far.
Maybe you do it differently or don’t care about performance at all :slight_smile: