Hi Rory,
While converting my instrument with many widgets (about 100) to the guiMode("queue")
, I’m getting unexpectedly high CPU reading (MacBook Pro 15-inch, Mid 2015, MacOS 10.14.6, Cabbage 2.6.9).
To test this, I have a simple instrument with 72 rsliders (channel names “knob1”, “knob2”,…) set-up manually (not with cabbageCreate
), which I am reading into a table:
knobs[] init 72
kind = 0
until kind==lenarray(knobs) do
SID sprintfk "knob%d", kind+1
;knobs[kind] = chnget:k(SID)
knobs[kind] = cabbageGetValue:k(SID)
kind += 1
od
While in my actual instrument the CPU is about double when using the queue mode, in this test I’m reading about 43% (queue mode) vs 24% (defualt). I’d expect quite an opposite behaviour?
Clocking the instrument (rtclock
) gives me similar numbers of about 0.15 for the time difference (kt - kt0) / (ksmps/sr)
.
Am I missing something or is there really an unexpected performance hit?