mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Improve compressed zones tooltips.
This commit is contained in:
parent
c8361205da
commit
a918d9a401
@ -1283,9 +1283,9 @@ int View::DrawZoneLevel( const Vector<ZoneEvent*>& vec, bool hover, double pxns,
|
|||||||
if( num > 1 )
|
if( num > 1 )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "Zones too small to display: %s", RealToString( num, true ) );
|
TextFocused( "Zones too small to display:", RealToString( num, true ) );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Execution time: %s", TimeToString( rend - ev.start ) );
|
TextFocused( "Execution time:", TimeToString( rend - ev.start ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
if( ImGui::IsMouseClicked( 2 ) && rend - ev.start > 0 )
|
if( ImGui::IsMouseClicked( 2 ) && rend - ev.start > 0 )
|
||||||
@ -1546,9 +1546,9 @@ int View::DrawGpuZoneLevel( const Vector<GpuEvent*>& vec, bool hover, double pxn
|
|||||||
if( num > 1 )
|
if( num > 1 )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "Zones too small to display: %s", RealToString( num, true ) );
|
TextFocused( "Zones too small to display:", RealToString( num, true ) );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Execution time: %s", TimeToString( rend - start ) );
|
TextFocused( "Execution time:", TimeToString( rend - start ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
|
|
||||||
if( ImGui::IsMouseClicked( 2 ) && rend - start > 0 )
|
if( ImGui::IsMouseClicked( 2 ) && rend - start > 0 )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user