mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Only show dict building checkbox if there are frame images.
This commit is contained in:
parent
3d75bf653a
commit
56958a018c
@ -657,11 +657,14 @@ bool View::Draw()
|
|||||||
ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp );
|
ImGui::SliderInt( "##zstd", &zlvl, 1, 22, "%d", ImGuiSliderFlags_AlwaysClamp );
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
|
|
||||||
ImGui::Separator();
|
|
||||||
static bool buildDict = false;
|
static bool buildDict = false;
|
||||||
|
if( s_instance->m_worker.GetFrameImageCount() != 0 )
|
||||||
|
{
|
||||||
|
ImGui::Separator();
|
||||||
ImGui::Checkbox( "Build frame images dictionary", &buildDict );
|
ImGui::Checkbox( "Build frame images dictionary", &buildDict );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
TextDisabledUnformatted( "Decreases run-time memory requirements" );
|
TextDisabledUnformatted( "Decreases run-time memory requirements" );
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
if( ImGui::Button( ICON_FA_SAVE " Save trace" ) )
|
if( ImGui::Button( ICON_FA_SAVE " Save trace" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user