1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add frame target UI.

This commit is contained in:
Bartosz Taudul
2020-11-15 15:46:23 +01:00
parent b0e69b2e9f
commit 8a1d8e4bac
3 changed files with 20 additions and 1 deletions
+12
View File
@@ -8335,6 +8335,18 @@ void View::DrawOptions()
bool val = m_vd.drawEmptyLabels;
ImGui::Checkbox( ICON_FA_EXPAND " Draw empty labels", &val );
m_vd.drawEmptyLabels = val;
val = m_vd.drawFrameTargets;
ImGui::Checkbox( ICON_FA_FLAG_CHECKERED " Draw frame targets", &val );
m_vd.drawFrameTargets = val;
ImGui::Indent();
int tmp = m_vd.frameTarget;
ImGui::SetNextItemWidth( 120 );
if( ImGui::InputInt( "Target FPS", &tmp ) )
{
if( tmp < 1 ) tmp = 1;
m_vd.frameTarget = tmp;
}
ImGui::Unindent();
if( m_worker.HasContextSwitches() )
{
ImGui::Separator();