mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Remove GPU resync leftovers.
This commit is contained in:
parent
4c16aa9b96
commit
4a467b6d03
@ -189,12 +189,6 @@ struct ThreadData
|
|||||||
Vector<MessageData*> messages;
|
Vector<MessageData*> messages;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GpuCtxResync
|
|
||||||
{
|
|
||||||
int64_t timeDiff;
|
|
||||||
uint16_t events;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct GpuCtxData
|
struct GpuCtxData
|
||||||
{
|
{
|
||||||
int64_t timeDiff;
|
int64_t timeDiff;
|
||||||
@ -202,7 +196,6 @@ struct GpuCtxData
|
|||||||
uint64_t count;
|
uint64_t count;
|
||||||
Vector<GpuEvent*> timeline;
|
Vector<GpuEvent*> timeline;
|
||||||
Vector<GpuEvent*> stack;
|
Vector<GpuEvent*> stack;
|
||||||
Vector<GpuCtxResync> resync;
|
|
||||||
uint8_t accuracyBits;
|
uint8_t accuracyBits;
|
||||||
float period;
|
float period;
|
||||||
GpuEvent* query[64*1024];
|
GpuEvent* query[64*1024];
|
||||||
|
|||||||
@ -2066,18 +2066,6 @@ void Worker::ProcessGpuTime( const QueueGpuTime& ev )
|
|||||||
std::swap( zone->gpuEnd, zone->gpuStart );
|
std::swap( zone->gpuEnd, zone->gpuStart );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !ctx->resync.empty() )
|
|
||||||
{
|
|
||||||
auto& resync = ctx->resync.front();
|
|
||||||
assert( resync.events > 0 );
|
|
||||||
resync.events--;
|
|
||||||
if( resync.events == 0 )
|
|
||||||
{
|
|
||||||
ctx->timeDiff = resync.timeDiff;
|
|
||||||
ctx->resync.erase( ctx->resync.begin() );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Worker::ProcessMemAlloc( const QueueMemAlloc& ev )
|
void Worker::ProcessMemAlloc( const QueueMemAlloc& ev )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user