You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A frame starts just in time: in an animation, a scroll or a drag, render.pace_frame starts each frame as late as it can and still present it before the deadline of its refresh, so its input is read as close to the screen as possible. It times the frame from the screen's vblanks, the deadline the compositor keeps before each one (learned from its answers: Vblank_Timing.lead_ns) and the 90th percentile of the recent frames' cost (platform.Frame_Cost, jit_start, Frame_Decision.just_in_time). A frame later than that goes at once, a key or a button ends the wait, and the first frame after a rest is not delayed.
Vblank timing on X11: the Present extension's answers (PresentCompleteNotify) say when each picture reached the screen, as Wayland's presentation answers do (platform.vblank_timing), when the Vulkan driver presents with Present (a software one draws with PutImage: no answer). The answers end no wait of the loop.
Vblank timing on Wayland (platform.vblank_timing, platform.vblank_ask, Vblank_Timing): the compositor's presentation answers (wp_presentation) say when each picture reached the screen. render.measured_refresh_hz and render.vblank_grid now answer on Wayland, a frame after a rest takes the measured refresh as its dt, and render.present_totals counts the pictures the compositor showed, not the presents.