Skip to content

Commit

Permalink
Opts: Add option to use high-prec vblank timestamps
Browse files Browse the repository at this point in the history
Disabled by default
  • Loading branch information
Heinrich authored and mikesart committed Sep 24, 2019
1 parent b1c9430 commit 281b91c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gpuvis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ void Opts::init()

init_opt_bool( i, desc.c_str(), inikey.c_str(), true );
}

init_opt_bool( OPT_VBlankHighPrecTimestamps, "Use high-precision HW vblank timestamps (if available)", "vblank_high_prec_timestamps", false );

init_opt_bool( OPT_RenderFrameMarkers, "Show render frame markers", "render_framemarkers", true );

// Set up action mappings so we can display hotkeys in render_imgui_opt().
Expand Down
1 change: 1 addition & 0 deletions src/gpuvis.h
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@ enum : uint32_t
OPT_RenderCrtc7,
OPT_RenderCrtc8,
OPT_RenderCrtc9,
OPT_VBlankHighPrecTimestamps,
OPT_RenderFrameMarkers,
OPT_GraphHeight,
OPT_GraphHeightZoomed,
Expand Down

0 comments on commit 281b91c

Please sign in to comment.