mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Count frames from 1, not 0.
This commit is contained in:
parent
6b8a3b25ba
commit
3869c1dbca
@ -722,7 +722,7 @@ void View::DrawFrames()
|
|||||||
{
|
{
|
||||||
ImGui::TextDisabled( "%s:", m_worker.GetString( m_frames->name ) );
|
ImGui::TextDisabled( "%s:", m_worker.GetString( m_frames->name ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Text( "%s", RealToString( sel, true ) );
|
ImGui::Text( "%s", RealToString( sel + 1, true ) );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
TextFocused( "Frame time:", TimeToString( m_worker.GetFrameTime( *m_frames, sel ) ) );
|
TextFocused( "Frame time:", TimeToString( m_worker.GetFrameTime( *m_frames, sel ) ) );
|
||||||
}
|
}
|
||||||
@ -914,7 +914,7 @@ const char* View::GetFrameText( const FrameData& fd, int i, uint64_t ftime, uint
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf( buf, "%s %s (%s)", m_worker.GetString( fd.name ), RealToString( i, true ), TimeToString( ftime ) );
|
sprintf( buf, "%s %s (%s)", m_worker.GetString( fd.name ), RealToString( i + 1, true ), TimeToString( ftime ) );
|
||||||
}
|
}
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user