If I edit config.txt and set background_sleep_ms to something other than the default of 20, next time PICO-8 runs it will still appear to use 20 as the setting (evinced by the fact that it doesn't keep 60 FPS when the window is not in focus) and then it always writes 20 to config.txt on exit :O
This is v0.1.11f on Linux.
Confirmed with 0.1.11f on Windows. The app always ignores startup values and writes the following on exit:
foreground_sleep_ms 5 // number of milliseconds to sleep each frame. Try 10 to conserve battery power background_sleep_ms 20 // number of milliseconds to sleep each frame when running in the background
I tested by having no instances running, edited the config file to say 1 and 10 respectively, ran with no command line options, exited immediately, and reloaded the config file. Back to 5 and 20.
Definitely a bug. Good catch.
There may be other config file values that also get set back to default, so maybe check all of them...?
[Please log in to post a comment]