Monitoring scheduler preferences


    May 12 2020 | 2:39 pm
    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!

    • May 23 2020 | 6:13 pm
      Bumping since it's been a couple weeks - anyone have any thoughts on this?
    • May 23 2020 | 7:53 pm
      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"
      Instruments Time Profile of Max symbol="thread"
    • May 24 2020 | 2:47 am
      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!