Add a help marker for the target FPS setting.

This commit is contained in:
Bartosz Taudul 2024-06-16 12:52:17 +02:00
parent 959ab53529
commit 50f5345ea5
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -735,6 +735,8 @@ static void DrawContents()
ImGui::Spacing();
ImGui::TextUnformatted( "Target FPS" );
ImGui::SameLine();
tracy::DrawHelpMarker( "The default target frame rate for your application. Frames displayed in the frame time graph will be colored accordingly if they are within the target frame rate. This can be adjusted later for each individual trace." );
ImGui::SameLine();
int tmp = s_config.targetFps;
ImGui::SetNextItemWidth( 90 * dpiScale );
if( ImGui::InputInt( "##targetfps", &tmp ) ) { s_config.targetFps = std::clamp( tmp, 1, 9999 ); SaveConfig(); }