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

Parallelize timeline item preprocessing.

This commit is contained in:
Bartosz Taudul
2023-03-19 18:54:32 +01:00
parent 66d3c2a472
commit 1e1833edc2
5 changed files with 25 additions and 12 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ namespace tracy
{
struct TimelineContext;
class TaskDispatch;
class View;
class Worker;
@@ -23,7 +24,7 @@ public:
void Draw( bool firstFrame, const TimelineContext& ctx, int yOffset );
bool WantPreprocess() const { return m_wantPreprocess; }
virtual void Preprocess( const TimelineContext& ctx ) { assert( false ); }
virtual void Preprocess( const TimelineContext& ctx, TaskDispatch& td ) { assert( false ); }
void VisibilityCheckbox();
virtual void SetVisible( bool visible ) { m_visible = visible; }