Hi See attached patch. Open it, turn on DSP, click the toggle and compare CPU usage with the subpatch visible or hidden. On my computer, Pd takes 1% of CPU with the non-visible slider, and between 2 and 3% when the slider is visible. Remember that [bang~] bangs at audio rate :) I usually limit slider and al refresh request rate to 20ms or more : or better, once the patch runs ok, i delete all useless sliders, bangs and toggles.
On 08/02/2012 15:41, Jean-Marie Adrien wrote: > Hello list > reading everywhere that GUI takes enormous amount of CPU. > > More precisely : does a GUI element, say a slider monitoring a signal, > require lots of CPU in anycase -even when for instance it is invisible > somewhere deep in a subpatch-, or is it requiring lots of CPU only when > displayed in front window ? > JmA > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list >
#N canvas 1 75 432 471 10; #N canvas 1 78 457 497 hidden 0; #X obj -24 262 vsl 15 128 -1 1 0 0 empty empty empty 0 -9 0 10 -262144 -1 -1 10204 1; #X obj -24 223 snapshot~; #X obj 102 98 bang~; #X obj 135 123 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X obj 102 196 spigot; #X obj -25 168 osc~ 0.25; #X connect 1 0 0 0; #X connect 2 0 4 0; #X connect 3 0 4 1; #X connect 4 0 1 0; #X connect 5 0 1 0; #X coords 0 -1 1 1 85 60 1 100 100; #X restore 83 43 pd hidden;
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list