mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix magic vectors in single-threaded Vulkan tooltip.
This commit is contained in:
parent
672093cf0e
commit
ded49edf4c
@ -2247,10 +2247,18 @@ void View::DrawZones()
|
|||||||
if( tid == 0 )
|
if( tid == 0 )
|
||||||
{
|
{
|
||||||
if( !it->second.timeline.empty() )
|
if( !it->second.timeline.empty() )
|
||||||
|
{
|
||||||
|
if( it->second.timeline.is_magic() )
|
||||||
|
{
|
||||||
|
auto& tl = *(Vector<GpuEvent>*)&it->second.timeline;
|
||||||
|
tid = m_worker.DecompressThread( tl.begin()->Thread() );
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
tid = m_worker.DecompressThread( (*it->second.timeline.begin())->Thread() );
|
tid = m_worker.DecompressThread( (*it->second.timeline.begin())->Thread() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
|
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%s)", RealToString( tid, true ) );
|
ImGui::TextDisabled( "(%s)", RealToString( tid, true ) );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user