Forums > MaxMSP

Lagging at 44.1k

May 09 2011 | 7:54 pm

I’ve been building a patch that has several looping stations, sequencers, and effects all coinciding nicely. But, my drum and synth sequencers have been lagging quite regularly. Whilst trying different things to fix it I changed my sampling rate to 96k, and boom, no more lagging. BUT then my DSP cpu usage is doubled, making my patch run almost 80%… Afterwords, I tried switching back and forth between 96k and 44.1k to see if it was just needing to be reset or something, but it was still lagging just the same.

So, I could live at 96k, but would rather save on CPU and make my patch bigger.

I did some additional troubleshooting by making a few other small patches just to test this issue, and the same timing problems occurred.

-If anyone else has had an issue like this/has resolved an issue like this, I’d appreciate the input!

May 10 2011 | 1:11 pm

The obvious thing(s) to try are to try reduce the i/O vector size and signal vector size (rather than sample rate) which will also have a lpotentially significant effect on latency (and CPU usage as well).

Also, if t is possible, try to use poly~ where you have multiple identical voices going if you have not already done so. poly~ also enables patches to run at greater or lesser sample rates where that might be practical.

May 10 2011 | 5:53 pm

Thanks for the reply! Reducing the size of the signal vector made my patch keep perfect time. So, thank you very very much!

Also, if you or anyone else knows of any good reading related to optimizing one’s CPU usage in Max/making patches run more smoothly in general, I’d greatly appreciate it being sent my way.


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

Forums > MaxMSP