Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Reducing CPU The Flowstone way

For general discussion related FlowStone

Reducing CPU The Flowstone way

Postby Drnkhobo » Thu Dec 06, 2012 8:51 pm

Hey guys, im trying to reduce my cpu consumption in my vst.

As it stands a few things seem odd. It just might be the way FS handles and im just not with it yet.

So my setup is a simple limiter. I take the input and in all the modules, there are just asm code blocks inside, I pass
the audio to attenuate the input. Then a simple switch . You will see what I mean in the pic. . .

CPU.PNG
CPU.PNG (56.34 KiB) Viewed 23234 times



So when the switch is on, my cpu reads +- 12%

ok

When i switch off, cpu STILL reads 12% . . . ?!!


I dont get it . . . :cry:

Trog, i know youre there lurking and I have a BIG suspicion you know how to help. . . :P


Anyway, why does it still process even when the OUTPUT of the modules are off?

Or am I getting something wrong here
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Reducing CPU The Flowstone way

Postby MyCo » Fri Dec 07, 2012 10:25 am

It shouldn't process, but without your schematic, there is no chance to check what else is wrong
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Reducing CPU The Flowstone way

Postby Walter Sommerfeld » Fri Dec 07, 2012 2:04 pm

i noticed this in SM 2...
Try a Multiplexer @ the input to switch both ends of (bypass] as a workaround!
User avatar
Walter Sommerfeld
 
Posts: 249
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany

Re: Reducing CPU The Flowstone way

Postby trogluddite » Fri Dec 07, 2012 2:52 pm

Yes, really we need to see what else is in the schematic (no control parameters in the picture, so cannot be complete).

Are you using any display modules - e.g. indicator for Gain Reduction etc.? If so, that may be the problem - anywhere that you convert stream to 'green' (e.g. mono2float, mono2graph), that will count as a 'live' stream - so you must also disconnect "display convertors", to truly turn off the audio streams.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Reducing CPU The Flowstone way

Postby Drnkhobo » Wed Dec 12, 2012 7:12 pm

Hey guys!

Thanks for the tips, disconnecting the m2f components did help quite a bit :)
And the multiplexer too!

I must be honest here and say that I dont fully understand FS's
triggers. . . it is like a mysterious 4th dimension (or 3rd if you dont count time) !
Things dont make sense to my brain lol!
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Reducing CPU The Flowstone way

Postby trogluddite » Wed Dec 12, 2012 8:10 pm

Drnkhobo wrote:I must be honest here and say that I dont fully understand FS's
triggers

Maybe this will help...
Trigger Tutorial (unfinished, but three chapters are complete)
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Reducing CPU The Flowstone way

Postby MyCo » Wed Dec 12, 2012 8:58 pm

I don't see how a multiplexer should help to lower CPU usage on streams. The compiling process for streams is processed backwards, so this doesn't make any sense at all.
And the CPU display in FS is only for stream process, so when you refer to this, this has nothing to do with triggers, because they are not streams.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Reducing CPU The Flowstone way

Postby trogluddite » Thu Dec 13, 2012 12:35 am

MyCo wrote:I don't see how a multiplexer should help to lower CPU usage on streams

Unless there was stream stuff prior to the parts shown that was being made 'live' my some M2F's maybe?
Also, to clarify with the M2F's - they keep a stream live just by being linked to the stream, it makes no difference if they get triggered or not - so yes, they must be disconnected from the incoming stream to make that saving.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Reducing CPU The Flowstone way

Postby Drnkhobo » Thu Dec 13, 2012 7:30 pm

Unless there was stream stuff prior to the parts shown that was being made 'live' my some M2F's maybe?


Nope, in addition to the pic there were 2 meters obviously with m2f's but i have disconnected them.
Ive done some testing and it seems my actual dynamics processing takes the most cpu.

I have checked in resource monitor and its degree of error lies in the 0-5 % range - no difference REALLY.
Thanks for the tuts Trog, I have skimmed them before and seemed like I understood them already, but I
think I must go over them again, cause I NEED to understand them now. :?

It just seems strange to me that to change a value takes 2+ triggers! But i know that FS needs to keep prims
sleeping. So it makes sense. :lol:

And MyCo - I guess using a selector is what I went for in the end, multiplexer works too but the application of it
is too much , its much easier with a selector
Drnkhobo
 
Posts: 312
Joined: Sun Aug 19, 2012 7:13 pm
Location: ZA

Re: Reducing CPU The Flowstone way

Postby trogluddite » Fri Dec 14, 2012 12:49 am

Drnkhobo wrote:I have checked in resource monitor and its degree of error lies in the 0-5 % range

There's also a small amount that you can never remove - because the CPU load of the ASIO/DS primitives is also counted, which varies depending on buffer size, efficiency of your soundcard driver etc.
Just connect an audio driver in straight to an audio driver out to get a rough idea what the 'baseline' figure is for your system. Then subtract that from your meter reading to get a slightly more accurate idea how hard your actual processing is working.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK


Return to General

Who is online

Users browsing this forum: No registered users and 34 guests

cron