Storing scheduler settings in standalones?

Chris Vik's icon

How does the scheduler settings work on standalones?

Are the settings carried from your Max environment upon building the standalone, stored in a configuration file somewhere in the standalone file structure?

I have a synth I'd like to release under both Windows and OS X, but for some reason the OS X version runs terribly with the default scheduler settings. So I'd like to make sure the standalone is distributed with the adjusted scheduler settings. You can see my thread about it here: https://cycling74.com/forums/gui-chugging-hard-on-os-x-but-totally-fine-on-windows/

Floating Point's icon
Max Patch
Copy patch and select New From Clipboard in Max.

you can use pattr or presets or patcher args or store/retrieve settings in a coll.
here's an example of using patcher args for reinstating the defaults, which can be overridden with pattr, which i have used in the past for various patches. you will need to set up your own pattrstorage structure, but this will get you started

Chris Vik's icon

Hey Floating Point. Thanks for the demo. I didn't realise you could send script messages to change the scheduler settings.
Where is the list of these particular strings you're using in your example?

Chris.

Floating Point's icon

its in the documentation somewhere-- under something like 'controlling max with messages' if you do a search it should come up

Chris Vik's icon

Thanks again mate. Here's a link for others that are interested:

Chris Vik's icon

Just a word of warning to anyone wanting to control the "Refresh Rate" preference setting ( OS X ) via messages ( not the preference panel ):

The documentation in "Controlling Max with Messages" ( https://cycling74.com/docs/max6/dynamic/c74_docs.html#messages_to_max ), under "refreshrate" says:

The word setrefreshrate, followed by a number, sets the rate, in frames per second, at which the visual display is updated

This is incorrect; instead use refreshrate:

;
max refreshrate $1

Where $1 is the FPS and NOT the MS between draws, like in the preferences panel.

Roman Thilenius's icon

i forgot how, but oyu an also just define that this standalone should use application-specific preferences, and that it should save all audio settings when closed.

Chris Vik's icon

Thanks for the info Roman. I'll have a dig and post if I can find the location of that info.