Monitoring scheduler preferences

reflectwhat's icon

Configuring scheduler preferences has always been a bit of a guessing game for me. I'm wondering if there is a way to monitor the actual number of scheduler events, in order to make a more informed decision on what scheduler settings make the most sense for my patch.

For example, take Poll Throttle. Is there a way to monitor how many actual events, on average, are being handled per scheduler tick?

I looked through the documentation but didn't see any objects or previous threads about this. Thanks!

reflectwhat's icon

Bumping since it's been a couple weeks - anyone have any thoughts on this?

Chris Rolfe's icon

Are you developing on the Mac?

You could time profile Max using Xcode's Instrument app . I've been optimizing lately, adjusting and testing scheduler and refresh settings, screen resolutions, changing graphic engines and then reprofiling. After sampling for a few minutes and exercising the program's use cases, a search for "thread" under symbols and all is revealed.

It definitely helped tune my Javascript (ie, associative arrays are expensive under JS 1.5; I switched to indexed arrays) and C external, but I imagine it'd be useful for Max patchers and Jitter work too.

Instruments Time Profile of Max symbol="thread"

reflectwhat's icon

Thank you! Yes, I'm developing on a Mac. I had seen some threads about using xCode but hadn't delved into it, in the hopes that maybe there was some simpler way to access scheduler performance metadata that I just hadn't found. I really appreciate your in-depth explanation; I'll definitely be using it to analyze scheduler performance.

I know it's probably a longshot, but if any Cycling '74 devs are read this - having a way to access scheduler performance metadata within Max would be a dream!