mirror of
https://github.com/wolfpld/tracy
synced 2025-05-07 23:43:52 +00:00
Remove GPU resync leftovers.
This commit is contained in:
parent
4c16aa9b96
commit
4a467b6d03
@ -189,12 +189,6 @@ struct ThreadData
|
||||
Vector<MessageData*> messages;
|
||||
};
|
||||
|
||||
struct GpuCtxResync
|
||||
{
|
||||
int64_t timeDiff;
|
||||
uint16_t events;
|
||||
};
|
||||
|
||||
struct GpuCtxData
|
||||
{
|
||||
int64_t timeDiff;
|
||||
@ -202,7 +196,6 @@ struct GpuCtxData
|
||||
uint64_t count;
|
||||
Vector<GpuEvent*> timeline;
|
||||
Vector<GpuEvent*> stack;
|
||||
Vector<GpuCtxResync> resync;
|
||||
uint8_t accuracyBits;
|
||||
float period;
|
||||
GpuEvent* query[64*1024];
|
||||
|
@ -2066,18 +2066,6 @@ void Worker::ProcessGpuTime( const QueueGpuTime& ev )
|
||||
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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user