From doc
Variable Dt (deprecated)
Deprecated. If checked, will check `Vsync` and set `Frame Cap` to 0 at build-time for equivalent behavior.
But with check Vsync and frame cap:0 i always get 16.6 ms per frame. If have 30ms game run x0.5 speed. And i get 16ms in update.So it is not variable dt
So need unckeck Vsync to get variable dt.
Is it worked as expected? It bug or documentation wrong?
With display.vsync = 1
and display.update_frequency = 0
, you’ll get the framerate of your monitor (if it reports vsync correctly). If your frame is 60Hz, you’ll get 1s/60 =16.67ms each frame.
More on these settings in the manual:
2 Likes
So it bug in doc.
Variable dt, is unckeched vsync?
IN the editor, the documentation for the variables are:
display.frame_cap
“if Vsync checked, snaps to the closest matching swap interval for the set frame cap. Otherwise uses timers to respect the set value, 0 means no cap. For deprecated ‘variable_dt’ behavior, set to 0 and uncheck ‘Vsync’”
display.update_frequency
“Vertical sync, rely on hardware vsync for frame timing. Can be overridden depending on graphics driver and platform specifics. For deprecated ‘variable_dt’ behavior, uncheck this setting and set frame cap 0”
(shown when you hover on the settings in the editor)
1 Like