FrameStatistics Struct

struct Qul :: 平台 ::FrameStatistics

Provides frame rendering statistics. 更多...

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

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

公共函数

公共变量

详细描述

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

另请参阅 presentFrame ().

成员函数文档编制

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.

成员变量文档编制

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.

另请参阅 beginFrame () 和 presentFrame ().

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.

另请参阅 beginFrame () 和 presentFrame ().