1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Decouple check for existence from building draw lists.

We need to know if samples, context switches and messages are present to be
able to correctly calculate thread height. However, if the thread is not
visible, it is not necessary to provide a list of items to draw.
This commit is contained in:
Bartosz Taudul
2023-03-25 16:46:03 +01:00
parent 96d60ce626
commit e3ec455aba
4 changed files with 20 additions and 8 deletions
+3
View File
@@ -54,6 +54,9 @@ private:
std::vector<TimelineDraw> m_draw;
std::vector<MessagesDraw> m_msgDraw;
int m_depth;
bool m_hasCtxSwitch;
bool m_hasSamples;
bool m_hasMessages;
};
}