mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Hide advanced options in trace save dialog.
The default settings are good enough.
This commit is contained in:
parent
0d8b2b6252
commit
d67598f0fe
@ -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,46 +574,44 @@ 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" );
|
|
||||||
ImGui::Indent();
|
|
||||||
int idx = 0;
|
|
||||||
while( CompressionName[idx] )
|
|
||||||
{
|
{
|
||||||
if( ImGui::RadioButton( CompressionName[idx], (int)comp == idx ) ) comp = (FileCompression)idx;
|
TextDisabledUnformatted( "Can be changed later with the upgrade utility" );
|
||||||
|
ImGui::Indent();
|
||||||
|
int idx = 0;
|
||||||
|
while( CompressionName[idx] )
|
||||||
|
{
|
||||||
|
if( ImGui::RadioButton( CompressionName[idx], (int)comp == idx ) ) comp = (FileCompression)idx;
|
||||||
|
ImGui::SameLine();
|
||||||
|
TextDisabledUnformatted( CompressionDesc[idx] );
|
||||||
|
idx++;
|
||||||
|
}
|
||||||
|
ImGui::Unindent();
|
||||||
|
ImGui::TextUnformatted( "Zstd level" );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( CompressionDesc[idx] );
|
TextDisabledUnformatted( "Increasing level decreases file size, but increases save and load times" );
|
||||||
idx++;
|
ImGui::Indent();
|
||||||
}
|
if( ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp ) )
|
||||||
ImGui::Unindent();
|
{
|
||||||
ImGui::TextUnformatted( "Zstd level" );
|
comp = FileCompression::Zstd;
|
||||||
ImGui::SameLine();
|
}
|
||||||
TextDisabledUnformatted( "Increasing level decreases file size, but increases save and load times" );
|
ImGui::Unindent();
|
||||||
ImGui::Indent();
|
|
||||||
if( ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp ) )
|
|
||||||
{
|
|
||||||
comp = FileCompression::Zstd;
|
|
||||||
}
|
|
||||||
ImGui::Unindent();
|
|
||||||
|
|
||||||
static int streams = 4;
|
ImGui::TextUnformatted( ICON_FA_SHUFFLE " Compression streams" );
|
||||||
ImGui::TextUnformatted( ICON_FA_SHUFFLE " Compression streams" );
|
|
||||||
ImGui::SameLine();
|
|
||||||
TextDisabledUnformatted( "Parallelize save and load at the cost of file size" );
|
|
||||||
ImGui::Indent();
|
|
||||||
ImGui::SliderInt( "##streams", &streams, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp );
|
|
||||||
ImGui::Unindent();
|
|
||||||
|
|
||||||
static bool buildDict = false;
|
|
||||||
if( m_worker.GetFrameImageCount() != 0 )
|
|
||||||
{
|
|
||||||
ImGui::Separator();
|
|
||||||
ImGui::Checkbox( "Build frame images dictionary", &buildDict );
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( "Decreases run-time memory requirements" );
|
TextDisabledUnformatted( "Parallelize save and load at the cost of file size" );
|
||||||
|
ImGui::Indent();
|
||||||
|
ImGui::SliderInt( "##streams", &streams, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp );
|
||||||
|
ImGui::Unindent();
|
||||||
|
|
||||||
|
if( m_worker.GetFrameImageCount() != 0 )
|
||||||
|
{
|
||||||
|
ImGui::Separator();
|
||||||
|
ImGui::Checkbox( "Build frame images dictionary", &buildDict );
|
||||||
|
ImGui::SameLine();
|
||||||
|
TextDisabledUnformatted( "Decreases run-time memory requirements" );
|
||||||
|
}
|
||||||
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user