FrameTimings

class FrameTimings(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GdkFrameTimings object holds timing information for a single frame of the application’s displays.

To retrieve GdkFrameTimings objects, use method@Gdk.FrameClock.get_timings or method@Gdk.FrameClock.get_current_timings. The information in GdkFrameTimings is useful for precise synchronization of video with the event or audio streams, and for measuring quality metrics for the application’s display, such as latency and jitter.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gdkFrameTimingsPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Returns whether @timings are complete.

Link copied to clipboard
fun getFrameCounter(): <Error class: unknown class>

Gets the frame counter value of the GdkFrameClock when this frame was drawn.

Link copied to clipboard
fun getFrameTime(): <Error class: unknown class>

Returns the frame time for the frame.

Link copied to clipboard
fun getPredictedPresentationTime(): <Error class: unknown class>

Gets the predicted time at which this frame will be displayed.

Link copied to clipboard
fun getPresentationTime(): <Error class: unknown class>

Reurns the presentation time.

Link copied to clipboard
fun getRefreshInterval(): <Error class: unknown class>

Gets the natural interval between presentation times for the display that this frame was displayed on.

Link copied to clipboard

Increases the reference count of @timings.

Link copied to clipboard
fun unref()

Decreases the reference count of @timings.