2
0
mirror of https://github.com/wolfpld/tracy synced 2026-01-19 04:52:09 +00:00

Add animated waiting dots in place of ellipsis in call stack window.

This commit is contained in:
Bartosz Taudul
2026-01-14 02:25:00 +01:00
parent b19d9622b3
commit 227c7133c3

View File

@@ -14,6 +14,8 @@
namespace tracy namespace tracy
{ {
extern double s_time;
void View::DrawCallstackWindow() void View::DrawCallstackWindow()
{ {
bool show = true; bool show = true;
@@ -244,8 +246,14 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
if( it != m_callstackDesc.end() ) if( it != m_callstackDesc.end() )
{ {
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextUnformatted( it->second.c_str() ); if( strcmp( it->second.c_str(), "" ) == 0 )
if( strcmp( it->second.c_str(), "" ) == 0 ) m_wasActive = true; {
DrawWaitingDots( s_time, true, true );
}
else
{
ImGui::TextUnformatted( it->second.c_str() );
}
if( clicked ) it->second = ""; if( clicked ) it->second = "";
} }
else if( clicked ) else if( clicked )