Forums > MaxMSP

gen~ in poly~

November 4, 2011 | 8:33 am

Hi,

I tried to put gen~ in poly~: 300% more expensive. Why is that? Is it not a good idea in general? Anybody here that has something wise to say about this?

Thanks,

lvdw


November 4, 2011 | 8:46 am

example:

Attachments:
  1. geninpoly.zip

November 4, 2011 | 8:50 am

Sorry, posted a bit too quick. The answer is probably that this subpatcher simply isn’t better off inside gen~. Should have tested that first. Not poly~ related I guess.


November 4, 2011 | 11:59 pm

Interesting. I get very different figures here:
withgen: 34-25%
oldstyle: 38-39%

Could you tell me details about your system?

I tested with Mac 10.6.8, Core i7 2Gz (4Gb RAM). 64 sigvs, 44.1kHz, no overdrive or SIAI.

That said, performance tuning is something we are actively working on right now across numerous MSP objects, the MSP audio chain and mixer, and gen~, and improvements can be expected in updates over the coming months.


November 5, 2011 | 3:35 am

Interesting indeed, especially since gen~ actually is a bit faster in your case.

I use a MacBook Pro 13" // 2.4 GHz Intel Core 2 Duo // 4GB 1067 MHz DDR3 // Mac OS X 10.7.2 and the latest Max 6 build. The results above are with the same settings, but overdrive turned on. But I tried various other combinations with the overdrive and interrupt settings, and it doesn’t seem to make a big difference, maybe one percent up or down.

Looking forward to future improvements, also in terms of documentation of gen~ and its own objects. And do you plan to incorporate some ways of monitoring processes inside of gen~, or maybe some test mode? Or do I miss something? I understand that it’s pretty much against its nature, but probing and monitoring the internal behavior is problematic now (and thus not entirely with ‘the comfort of max’…)

Thanks a lot,

laurens.


November 5, 2011 | 5:21 pm

Hi,

Yes, we are also exploring ways to support debugging modes for probing etc. in Gen patchers, as well as ways to make accessing help more comfortable.

Graham


November 5, 2011 | 7:38 pm

I can confirm Ivdw performance

withgen: 40%
oldstyle: 10%

iMac 3.06 GHz Intel Core 2 Duo – 4GB 800MHz DDR2 SDRAM – 10.6.8

matteo


November 6, 2011 | 7:20 pm

It’s worth also noting that small subpatchers (like this example) are not likely to show better performance than native objects: there is some unavoidable overhead in passing from the gen~ object to the generated native code, and with a small patcher there isn’t much opportunity for automated optimization to improve over hand-tuned optimization. Gen is a new technology, and efficiency is only one of its motivating goals. We expect gen~ performance to increase in coming updates.

Graham


November 7, 2011 | 2:02 am

I should add that in this particular patch the bulk of the processing is in the cycle~ object / cycle operator. The
cycle~ object has been heavily optimized in a way which cycle in gen has not yet been, but that we will be working on making those changes to cycle in gen in a future update.

Graham


November 7, 2011 | 5:24 am

That last bit is very interesting.
Anyway, like I said in the third post: it’s not poly~, since the subpatch itself is already faster without gen~.
Still, the differences in performance results are interesting, I think. Do you have a clue? Is it a processor issue?

lvdw


Viewing 10 posts - 1 through 10 (of 10 total)