Page 1 of 1
using midi controller increases cpu load?
Posted: Fri May 31, 2013 8:38 pm
by Nubeat7
after implementing midilearn to my knobs in my actual fx plugin, i realised that using a midicontroller knob increases the cpu up to 10% more then using the gui knob?
any suggestions why this is happening?
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 12:35 am
by tektoog
A probable insidious loop in your design....
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 8:01 am
by Nubeat7
i`m using the midilearn system which chacckl and you where creating here:
viewtopic.php?f=3&t=641&start=30i also changed the 100 ticks inside to a 25 global tick but didn`t make any difference....
i already was searching for some loops but couldnt find something..
cpu increases most when turning the knobs fast
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 11:11 am
by tester
Gui actions increase CPU usage. GDI response or something like that. Try moving very fast whatever slider or probably even mouse over gui very fast and it would have similar effect. But from what I noticed on other windows software - although it can consume 40% of CPU (according to task manager) - these are rather low priority spikes, thus they don't seem to affect operational things.
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 11:42 am
by Nubeat7
i need to try look how it is when exported as vst... but in fs it only increases when using the midiknob when using the mouse on the gui it is normal, there is a big difference between mouse and midiknob, thats why im wondering..
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 1:22 pm
by philter5
in synthmakers registered user forum there is a knob infuzion posted a while ago+
search for heartbeat ticker
there are also some examples + tests i made related to the problem you described.
or are you talkin about a knob made with ruby?
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 2:53 pm
by Nubeat7
thanks filter for the tip i will search for it in the evening ( @ work atm)! the knobs are done in ruby but i will have a look maybe something is useful or i can find a solution through it, to solve this issue...
Re: using midi controller increases cpu load?
Posted: Sat Jun 01, 2013 5:25 pm
by philter5
Re: using midi controller increases cpu load?
Posted: Mon Jun 03, 2013 11:53 pm
by Nubeat7
thanks Philter, it helped a liitle bit, i tried to optimize also the ruby code of the knob, like infuzon brought some things up in the thread, and i divided the redraw limiter triggers by 2 when setting per controller this helped pretty good but it still increases more then using the mouse which makes nearly no difference for the cpu...
i posted the knob here:
viewtopic.php?f=3&t=641&p=6190#p6190to keep it in place