1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-01 05:03:53 +00: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
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -555,6 +555,11 @@ bool View::Draw()
ImGui::EndPopup(); ImGui::EndPopup();
} }
static FileCompression comp = FileCompression::Zstd;
static int zlvl = 3;
static bool buildDict = false;
static int streams = 4;
bool saveFailed = false; bool saveFailed = false;
if( !m_filenameStaging.empty() ) if( !m_filenameStaging.empty() )
{ {
@ -569,10 +574,8 @@ bool View::Draw()
ImGui::PopFont(); ImGui::PopFont();
ImGui::Separator(); ImGui::Separator();
static FileCompression comp = FileCompression::Zstd; if( ImGui::TreeNode( ICON_FA_FILE_ZIPPER " Trace compression" ) )
static int zlvl = 3; {
ImGui::TextUnformatted( ICON_FA_FILE_ZIPPER " Trace compression" );
ImGui::SameLine();
TextDisabledUnformatted( "Can be changed later with the upgrade utility" ); TextDisabledUnformatted( "Can be changed later with the upgrade utility" );
ImGui::Indent(); ImGui::Indent();
int idx = 0; int idx = 0;
@ -594,7 +597,6 @@ bool View::Draw()
} }
ImGui::Unindent(); ImGui::Unindent();
static int streams = 4;
ImGui::TextUnformatted( ICON_FA_SHUFFLE " Compression streams" ); ImGui::TextUnformatted( ICON_FA_SHUFFLE " Compression streams" );
ImGui::SameLine(); ImGui::SameLine();
TextDisabledUnformatted( "Parallelize save and load at the cost of file size" ); 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::SliderInt( "##streams", &streams, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp );
ImGui::Unindent(); ImGui::Unindent();
static bool buildDict = false;
if( m_worker.GetFrameImageCount() != 0 ) if( m_worker.GetFrameImageCount() != 0 )
{ {
ImGui::Separator(); ImGui::Separator();
@ -610,6 +611,8 @@ bool View::Draw()
ImGui::SameLine(); ImGui::SameLine();
TextDisabledUnformatted( "Decreases run-time memory requirements" ); TextDisabledUnformatted( "Decreases run-time memory requirements" );
} }
ImGui::TreePop();
}
ImGui::Separator(); ImGui::Separator();
if( ImGui::Button( ICON_FA_FLOPPY_DISK " Save trace" ) ) if( ImGui::Button( ICON_FA_FLOPPY_DISK " Save trace" ) )