ScnLib_EnableVideoVariableFrameRate()

ScnLib_EnableVideoVariableFrameRate()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_EnableVideoVariableFrameRate(BOOL bEnable);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_EnableVideoVariableFrameRate(bool Enable);
Basic Public Declare Sub ScnLib_EnableVideoVariableFrameRate Lib "ScnLib.dll" (ByVal Enable As Boolean)
Delphi procedure ScnLib_EnableVideoVariableFrameRate(Enable: LongBool); stdcall; external 'ScnLib.dll';
  • Description
    Enable or disable the video variable frame rate feature.

  • Parameters
    • Enable [in]
      TRUE: To enable the video variable frame rate feature.
      FALSE: To disable the video variable frame rate feature.
  • Return Value
    None.

  • Remarks
    Use this function to enable or disable the video variable frame rate feature. Computer screens often display static images or undergo infrequent changes, such as opening, moving, or closing windows, and cursor movements. Capturing and encoding screen content only when changes occur can significantly reduce CPU usage. Unfortunately, the standard GDI screen capture technique cannot detect these content changes, resulting in constant frame rate captures regardless of screen activity. This limitation contributes to GDI's performance inefficiencies.

    However, our SDK offers a solution with GPU-accelerated screen capture techniques capable of detecting screen content changes and capturing the updates promptly. This functionality is part of the SDK's video variable frame rate feature, which is enabled by default. Disabling this feature will lead the SDK to capture the screen at a constant frame rate, even with GPU acceleration. To check the current status of the video variable frame rate feature, call ScnLib_IsVideoVariableFrameRateEnabled().

  • See Also
    ScnLib_EnableGPUAcceleration()
    ScnLib_IsVideoVariableFrameRateEnabled()

Try the SDK for FREE SDK APIs overview