mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00: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::SameLine();
|
||||
ImGui::Text( "%s", RealToString( sel, true ) );
|
||||
ImGui::Text( "%s", RealToString( sel + 1, true ) );
|
||||
ImGui::Separator();
|
||||
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
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user