mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 06:39:10 +00:00
Preferences › Performance › Low-Latency Drawing (lowLatencyDrawing, off by default) is read when the app starts and asks for wgpu's AutoNoVsync. The present mode comes from --present-mode, then VECTORCRAFT_PRESENT_MODE, then the preference, then the default; with the preference off and no override the window surface is unchanged. The startup log names "(preference)" or "(override)" after the mode. Whenever the window presents without vsync, from the preference or an override, main-window frames start at most 240 times a second (about 4.17 ms apart). The wait comes before egui reads the frame's input, and the frame's time moves on by it. With vsync the display paces the frames and no cap applies. The checkbox shows on the desktop with the note that it applies the next time VectorCraft starts. A value that is not a boolean is an error. Fixes #6013