Legacy example · C++ · Version 1.0.0
Holoviz vsync
| Authors | Holoscan Team (NVIDIA) |
|---|---|
| Supported platforms | x86_64, aarch64 |
| Language | C++ |
| Version | 1.0.0 |
| Compatibility | HSDK 2.3 |
| Contribution level | Level 1 · Very high-quality code |
| Source | HoloHub |
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.
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