Skip to content
Skip to content
All examples

Legacy example · C++ · Version 1.0.0

Holoviz vsync

AuthorsHoloscan Team (NVIDIA)
Supported platformsx86_64, aarch64
LanguageC++
Version1.0.0
CompatibilityHSDK 2.3
Contribution levelLevel 1 · Very high-quality code
SourceHoloHub

Legacy HoloHub application

This application comes from HoloHub and was last tested with Holoscan SDK (HSDK) 2.3. It runs with the HoloHub CLI, ./holohub.

Holoviz vsync This application demonstrates the capability of the Holoviz operator to wait for the vertical blank of the display before updating the current image. It prints the displayed frames per second to the console, if sync to vertical blank is enabled the frames per second are capped to the display refresh rate.

To enable syncing to vertical blank set the vsync parameter of the Holoviz operator to true:

    auto holoviz = make_operator<ops::HolovizOp>(
        "holoviz",
        // enable synchronization to vertical blank
        Arg("vsync", true));

By default, the Holoviz operator is not syncing to the vertical blank of the display.

Run Instructions

To build and start the application:

./holohub run holoviz_vsync
All examples