C

FrameStatistics Struct

struct Qul::Platform::FrameStatistics

Provides frame rendering statistics. More...

Header: #include <platform/platform.h>
Since: Qt Quick Ultralite (Platform) 1.5

Public Functions

Public Variables

Detailed Description

FrameStatistics provides information about possible delays in rendering and the timing budget to render frames.

See also Qul::Platform::PlatformContext::presentFrame().

Member Function Documentation

[since Qt Quick Ultralite (Platform) 1.5] FrameStatistics::FrameStatistics()

Constructs default FrameStatistics object.

Default constructor that initializes refreshDelta and remainingBudget with the default values, 0 and the maximum integer value for the platform respectively.

This function was introduced in Qt Quick Ultralite (Platform) 1.5.

Member Variable Documentation

[since Qt Quick Ultralite (Platform) 1.5] int FrameStatistics::refreshDelta

Frame delay relative to its refresh interval.

This variable indicates how much the last frame was delayed relative to its refresh interval. When refresh interval is greater than 1, using a negative refreshDelta would reduce the refresh interval to avoid skipping frames.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

See also Qul::Platform::PlatformContext::beginFrame() and Qul::Platform::PlatformContext::presentFrame().

[since Qt Quick Ultralite (Platform) 1.5] int FrameStatistics::remainingBudget

Remaining timing budget for rendering.

This variable indicates how many milliseconds are spared before skipping a frame. It can be used to preemptively increase the refresh interval when the budget is very tight, to avoid skipping any frames.

This documentation was introduced in Qt Quick Ultralite (Platform) 1.5.

See also Qul::Platform::PlatformContext::beginFrame() and Qul::Platform::PlatformContext::presentFrame().

Available under certain Qt licenses.
Find out more.