mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Remove not needed check.
This commit is contained in:
parent
7aa575fd2e
commit
27e61b8204
@ -5623,20 +5623,13 @@ void Worker::ProcessGpuTime( const QueueGpuTime& ev )
|
||||
if( zone->GpuStart() < 0 )
|
||||
{
|
||||
zone->SetGpuStart( gpuTime );
|
||||
if( m_data.lastTime < gpuTime ) m_data.lastTime = gpuTime;
|
||||
ctx->count++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( gpuTime < zone->GpuStart() )
|
||||
{
|
||||
auto tmp = zone->GpuStart();
|
||||
std::swap( gpuTime, tmp );
|
||||
zone->SetGpuStart( tmp );
|
||||
}
|
||||
zone->SetGpuEnd( gpuTime );
|
||||
if( m_data.lastTime < gpuTime ) m_data.lastTime = gpuTime;
|
||||
}
|
||||
if( m_data.lastTime < gpuTime ) m_data.lastTime = gpuTime;
|
||||
}
|
||||
|
||||
void Worker::ProcessGpuCalibration( const QueueGpuCalibration& ev )
|
||||
|
Loading…
Reference in New Issue
Block a user