using midi controller increases cpu load?

For general discussion related FlowStone
Post Reply
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

using midi controller increases cpu load?

Post 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?
User avatar
tektoog
Posts: 141
Joined: Sat Oct 30, 2010 11:49 pm
Location: Geneva - Switzerland

Re: using midi controller increases cpu load?

Post by tektoog »

A probable insidious loop in your design....
"Essential random order for chaotic repetitive sequences"
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: using midi controller increases cpu load?

Post by Nubeat7 »

i`m using the midilearn system which chacckl and you where creating here: viewtopic.php?f=3&t=641&start=30
i 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
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: using midi controller increases cpu load?

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: using midi controller increases cpu load?

Post 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..
philter5
Posts: 11
Joined: Fri Nov 12, 2010 9:11 am

Re: using midi controller increases cpu load?

Post 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?
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: using midi controller increases cpu load?

Post 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...
philter5
Posts: 11
Joined: Fri Nov 12, 2010 9:11 am

Re: using midi controller increases cpu load?

Post by philter5 »

User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: using midi controller increases cpu load?

Post 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#p6190

to keep it in place
Post Reply