IDCompositionDevice::GetFrameStatistics method

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

Syntax

HRESULT GetFrameStatistics(
  DCOMPOSITION_FRAME_STATISTICS *statistics
);

Parameters

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

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

See Also

Composition Target Window

IDCompositionDevice