Ticks at a constant rate, for example 60 Hz, and if there is no new frame when The display hardware then shows the given frame. SurfaceFlinger signals availability of a frame to the display hardware using a
The compositor within the display subsystem, that it has submitted all the drawĬalls needed for a frame (by calling eglSwapBuffers or vkQueuePresentKHR). Repeats the display of past frames when late frames are detected.To avoid these artifacts, the display subsystem does the That can occur when the display hardware switches to a new frame part-way The Androidĭisplay subsystem was designed to avoid visual artifacts (known as tearing) If you want to jump directly to implementing frame pacing inįrame pacing is the synchronization of a game’s logic and rendering loop withĪn OS’s display subsystem and the underlying display hardware. Situations where frame pacing is needed, and shows how the library addresses This document defines frame pacing, describes
It helps OpenGL and Vulkan games achieve smooth rendering andĬorrect frame pacing on Android. The Android Frame Pacing library, also known as Swappy, is part of the AGDK Libraries.