IDCompositionDevice2::GetFrameStatistics method (dcomp.h)

Retrieves information from the composition engine about composition times and the frame rate.

Syntax

HRESULT GetFrameStatistics(
  [out] DCOMPOSITION_FRAME_STATISTICS *statistics
);

Parameters

[out] statistics

Type: DCOMPOSITION_FRAME_STATISTICS*

A structure that receives composition times and frame rate information.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.

Remarks

This method retrieves timing information about the composition engine that an application can use to synchronize the rasterization of bitmaps with independent animations.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dcomp.h
Library Dcomp.lib
DLL Dcomp.dll

See also

Composition Target Window

IDCompositionDevice2