Welcome to %s forums

BrainModular Users Forum

Login Register

Reducing CPU footprint of patch.

I need help on a Patch
Post Reply
Blaakk
Member
Posts: 96
Location: Tyne and Wear, UK
Contact:

Unread post by Blaakk » 18 May 2014, 03:59

I've been working on my FCB Boy http://www.sensomusic.com/forums/upload ... ypatch.pat adding more binds (pedal banks and EXP pedals destinations selectable via control panel switches) and I noticed the CPU usage is at around 9%. Bit high for my liking. Also, the CPU usage of the pedal 1 subpatch was (displaying) twice that of the other pedal subpatches, yet after reloading the patch, the CPU display of each subpatch now reads 0.

Image

Are there any tips one can give through observation? How does using polyphony for subpatches effect CPU?

I suspect in this case there are invisible/hidden duplicates within for some things (I vaguely remember seeing LEDS in places where they shouldn't be), and when I 'unlocked' the patch, there were boxes shaped like the footswitches which disappeared when I clicked on them.

Thanks!

Ps, renaming the file (before uploading) to something with no spaces fixed my image display problem. The patch would not download with a space in name either.

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 May 2014, 23:37

I've found sub-patches save a lot of heartache and frustration in the long run. I'm sure they also run faster, as Usine can optimize them away as their structure is predefined and (more importantly) invariant.

It also means that if I've messed up something, I only have to change it once. Getting a handle on designing with containers was crucial, so that the interface was already perfect for each voice once I switched the polyphony on. Sequins was the result of starting over a whole bunch of times, and learning how to make it easier to rebuild when that happened.

However I do not believe having unique busses per voice works. You'd have to put them all in the proto patch and then sned the flow only to the correct one.

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 20 May 2014, 12:14

You could do this using the module which gives you the current polyphonic voice, and then use the 'toggle amongst many' module from my "midi on my mind" add-on to toggle on and off the relevant busses based on the voice number.

Blaakk
Member
Posts: 96
Location: Tyne and Wear, UK
Contact:

Unread post by Blaakk » 21 May 2014, 09:51

Ah 'MIDI on my mind' is yours also? Cheers!

Ok thank you ceasless. I'll start this again. I realize I still have a long way to go in my studies. :) I'd come across your 'toggle amongst many' before but had no understanding of how to use it. I have your Sequins open and should be able to learn a few things from playing with, and studying this.

The reason I avoided subpatches in this case is because..... I once applied polyphony and something went wrong... CPU shot up to 100%. And upon restarting Usine.... the loading process froze my PC, so I couldn't even reload a blank workspace. So I totally avoided 'repairing' anything and started again without subpatches. I know I should have filed a bug report, but I just wanted to avoid any CPU torture at all costs.
(Edit: actually I now remember I was creating the patch within the midi device, which was probably a bad idea.)

I've been practising with containers, subpatches, etc., and I'm definitely understanding it more. This also helps in understanding rearranging the layout using the 'unlock' option, which was extremely frustrating to use initially, but now I like it!

Blaakk
Member
Posts: 96
Location: Tyne and Wear, UK
Contact:

Unread post by Blaakk » 22 May 2014, 18:57

I just worked it out, mid-reply when going to gather progress. :)

Image

Not sure what I was doing wrong. Too much looking at flux wiring I think.

I opened up Sequins.... there's a lot going on in there! Very cool! I had a couple of questions but must refresh. I haven't yet used it (as a sequencer) or many other stuff due to being up against the clock, but I have created ahem... 'PlayBoy' racks for dedicating to experimentation outside my rigid setup. And 4 Reaktors.

Sequins and Nay Seven's Pitch n Speed Warp are next on the agenda. I'll keep trying with the Polyphonicness.....

Are you working on anything at the moment?

Post Reply

Who is online

Users browsing this forum: No registered users and 63 guests