1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 04:43:53 +00:00

Use unformatted text drawing where possible.

This commit is contained in:
Bartosz Taudul 2019-02-10 02:50:34 +01:00
parent ecdb672130
commit 96e38501b6
2 changed files with 212 additions and 205 deletions

View File

@ -281,7 +281,7 @@ int main( int argc, char** argv )
ImGui::EndPopup(); ImGui::EndPopup();
} }
ImGui::Separator(); ImGui::Separator();
ImGui::Text( "Connect to client" ); ImGui::TextUnformatted( "Connect to client" );
bool connectClicked = false; bool connectClicked = false;
connectClicked |= ImGui::InputText( "", addr, 1024, ImGuiInputTextFlags_EnterReturnsTrue ); connectClicked |= ImGui::InputText( "", addr, 1024, ImGuiInputTextFlags_EnterReturnsTrue );
if( !connHistVec.empty() ) if( !connHistVec.empty() )
@ -394,28 +394,28 @@ int main( int argc, char** argv )
switch( currProgress ) switch( currProgress )
{ {
case tracy::LoadProgress::Initialization: case tracy::LoadProgress::Initialization:
ImGui::Text( "Initialization..." ); ImGui::TextUnformatted( "Initialization..." );
break; break;
case tracy::LoadProgress::Locks: case tracy::LoadProgress::Locks:
ImGui::Text( "Locks..." ); ImGui::TextUnformatted( "Locks..." );
break; break;
case tracy::LoadProgress::Messages: case tracy::LoadProgress::Messages:
ImGui::Text( "Messages..." ); ImGui::TextUnformatted( "Messages..." );
break; break;
case tracy::LoadProgress::Zones: case tracy::LoadProgress::Zones:
ImGui::Text( "CPU zones..." ); ImGui::TextUnformatted( "CPU zones..." );
break; break;
case tracy::LoadProgress::GpuZones: case tracy::LoadProgress::GpuZones:
ImGui::Text( "GPU zones..." ); ImGui::TextUnformatted( "GPU zones..." );
break; break;
case tracy::LoadProgress::Plots: case tracy::LoadProgress::Plots:
ImGui::Text( "Plots..." ); ImGui::TextUnformatted( "Plots..." );
break; break;
case tracy::LoadProgress::Memory: case tracy::LoadProgress::Memory:
ImGui::Text( "Memory..." ); ImGui::TextUnformatted( "Memory..." );
break; break;
case tracy::LoadProgress::CallStacks: case tracy::LoadProgress::CallStacks:
ImGui::Text( "Call stacks..." ); ImGui::TextUnformatted( "Call stacks..." );
break; break;
default: default:
assert( false ); assert( false );
@ -423,7 +423,7 @@ int main( int argc, char** argv )
} }
ImGui::ProgressBar( float( currProgress ) / totalProgress, ImVec2( 200 * dpiScale, 0 ) ); ImGui::ProgressBar( float( currProgress ) / totalProgress, ImVec2( 200 * dpiScale, 0 ) );
ImGui::Text( "Progress..." ); ImGui::TextUnformatted( "Progress..." );
auto subTotal = progress.subTotal.load( std::memory_order_relaxed ); auto subTotal = progress.subTotal.load( std::memory_order_relaxed );
auto subProgress = progress.subProgress.load( std::memory_order_relaxed ); auto subProgress = progress.subProgress.load( std::memory_order_relaxed );
if( subTotal == 0 ) if( subTotal == 0 )

File diff suppressed because it is too large Load Diff