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

Hide advanced options in trace save dialog.

The default settings are good enough.
This commit is contained in:
Bartosz Taudul
2024-09-08 15:54:13 +02:00
parent 0d8b2b6252
commit d67598f0fe
+9 -6
View File
@@ -555,6 +555,11 @@ bool View::Draw()
ImGui::EndPopup();
}
static FileCompression comp = FileCompression::Zstd;
static int zlvl = 3;
static bool buildDict = false;
static int streams = 4;
bool saveFailed = false;
if( !m_filenameStaging.empty() )
{
@@ -569,10 +574,8 @@ bool View::Draw()
ImGui::PopFont();
ImGui::Separator();
static FileCompression comp = FileCompression::Zstd;
static int zlvl = 3;
ImGui::TextUnformatted( ICON_FA_FILE_ZIPPER " Trace compression" );
ImGui::SameLine();
if( ImGui::TreeNode( ICON_FA_FILE_ZIPPER " Trace compression" ) )
{
TextDisabledUnformatted( "Can be changed later with the upgrade utility" );
ImGui::Indent();
int idx = 0;
@@ -594,7 +597,6 @@ bool View::Draw()
}
ImGui::Unindent();
static int streams = 4;
ImGui::TextUnformatted( ICON_FA_SHUFFLE " Compression streams" );
ImGui::SameLine();
TextDisabledUnformatted( "Parallelize save and load at the cost of file size" );
@@ -602,7 +604,6 @@ bool View::Draw()
ImGui::SliderInt( "##streams", &streams, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp );
ImGui::Unindent();
static bool buildDict = false;
if( m_worker.GetFrameImageCount() != 0 )
{
ImGui::Separator();
@@ -610,6 +611,8 @@ bool View::Draw()
ImGui::SameLine();
TextDisabledUnformatted( "Decreases run-time memory requirements" );
}
ImGui::TreePop();
}
ImGui::Separator();
if( ImGui::Button( ICON_FA_FLOPPY_DISK " Save trace" ) )