# Initialize sw without performance clutter

**URL:** <https://forum.cabbageaudio.com/t/initialize-sw-without-performance-clutter/3976>\
**Category:** Cabbage recipes\
**Created:** [28 November 2023 20:51 UTC](https://forum.cabbageaudio.com/t/initialize-sw-without-performance-clutter/3976 "2023-11-28T20:51:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Man\_in\_the\_gutter](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/man_in_the_gutter/32/4202_2.png) [@Man\_in\_the\_gutter](https://forum.cabbageaudio.com/u/Man_in_the_gutter)\
**Post date:** [28 November 2023 20:51 UTC](https://forum.cabbageaudio.com/t/initialize-sw-without-performance-clutter/3976/1 "2023-11-28T20:51:16Z")

</div>

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 🙂
