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

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
+2
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(); }