mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Better Vulkan thread heuristics.
This commit is contained in:
parent
891e7711e9
commit
63184f8762
@ -2131,6 +2131,23 @@ void View::DrawZones()
|
||||
else
|
||||
{
|
||||
if( !v->threadData.empty() )
|
||||
{
|
||||
if( v->threadData.size() == 1 )
|
||||
{
|
||||
auto it = v->threadData.begin();
|
||||
auto tid = it->first;
|
||||
if( tid == 0 )
|
||||
{
|
||||
if( !it->second.timeline.empty() )
|
||||
{
|
||||
tid = m_worker.DecompressThread( (*it->second.timeline.begin())->thread );
|
||||
}
|
||||
}
|
||||
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s)", RealToString( tid, true ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::TextDisabled( "Threads:" );
|
||||
ImGui::Indent();
|
||||
@ -2143,6 +2160,7 @@ void View::DrawZones()
|
||||
ImGui::Unindent();
|
||||
}
|
||||
}
|
||||
}
|
||||
if( !v->threadData.empty() )
|
||||
{
|
||||
int64_t t0 = std::numeric_limits<int64_t>::max();
|
||||
|
Loading…
x
Reference in New Issue
Block a user