mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display target FPS also as time available.
This commit is contained in:
parent
c79bfa349f
commit
66318bdb3b
@ -8510,12 +8510,14 @@ void View::DrawOptions()
|
||||
m_vd.drawFrameTargets = val;
|
||||
ImGui::Indent();
|
||||
int tmp = m_vd.frameTarget;
|
||||
ImGui::SetNextItemWidth( 120 );
|
||||
ImGui::SetNextItemWidth( 90 );
|
||||
if( ImGui::InputInt( "Target FPS", &tmp ) )
|
||||
{
|
||||
if( tmp < 1 ) tmp = 1;
|
||||
m_vd.frameTarget = tmp;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) );
|
||||
ImGui::Unindent();
|
||||
if( m_worker.HasContextSwitches() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user