Package: gdk

Function gdk-frame-timings-predicted-presentation-time

Lambda List

gdk-frame-timings-predicted-presentation-time (timings)

Arguments

timings -- a gdk-frame-timings instance

Return Value

An integer with the predicted time at which the frame will be presented, or 0 if no predicted presentation time is available.

Details

Gets the predicted time at which this frame will be displayed. Although no predicted time may be available, if one is available, it will be available while the frame is being generated, in contrast to the function gdk-frame-timings-presentation-time, which is only available after the frame has been presented. In general, if you are simply animating, you should use the function gdk-frame-clock-frame-time rather than this function, but this function is useful for applications that want exact control over latency. For example, a movie player may want this information for Audio/Video synchronization.
 

See also

2021-4-9