Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables display of performance debugging counters.
Syntax
HRESULT EnableDebugCounters();
Return value
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
Performance counters are displayed on the top-right corner of the screen. From left to right, Microsoft DirectComposition displays the following information:
- The composition engine frame rate, in frames per second, averaged over the last 60 composition frames
- The overall CPU usage of the composition thread, in milliseconds
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 |