The Host Info patch may be easy on the processor but the values
coming out
of "CPU 1 Load" and "CPU 2 Load" refresh so many times a second
that the
rest of my composition (which depends on the CPU Load values) get
re-evaluated too many times a second, thus the high processor usage.
I'm looking to throttle the CPU Load values, I only need a value
about once
a second. Any ideas ?
You cannot control directly how often the Host Info patch updates the
CPU Load. It actually updates them every time is runs, which is once
per frame per default, so everything that depends on those values
updates once per frame as well.
The only solution I can think of is to put a JavaScript patch between
the Host Info patch and the rest of the pipeline to act as a gate
that would let values pass every now and then. The JS could have an
input for the CPU load and another one for the current time from
Patch Time and two outputs with the "sampled" CPU load and the
sampling time. Then you write a script like the following to sample
every second (off the top of my head):