mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 12:27:37 +00:00
Use Monitor Profile for Canvas reads the display's profile every 10
seconds and when the window moves to another display. The new command
view.refreshMonitorProfile (Edit › Refresh Monitor Profile, after Assign
Profile…) makes the next frame read it at once, past both the 10-second
reading and the 1-second display check. A request made while a reading
runs waits for that reading to end and then starts.
The command returns {requested: true} before the profile is read, and
ui.inspect's displayProfile reports readRequested while the request
waits. It is off and returns an error while the preference is off
(nothing is queued) and where nothing reads the display's profile (the
web build). It changes no document, proof setting or preference.
The reading thread now clears its busy flag before it asks for a
repaint, and it also asks for one when a request is pending.