Remove not needed check.

This commit is contained in:
Bartosz Taudul 2021-06-09 21:08:28 +02:00
parent 7aa575fd2e
commit 27e61b8204
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 )