mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +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 )
|
if( zone->GpuStart() < 0 )
|
||||||
{
|
{
|
||||||
zone->SetGpuStart( gpuTime );
|
zone->SetGpuStart( gpuTime );
|
||||||
if( m_data.lastTime < gpuTime ) m_data.lastTime = gpuTime;
|
|
||||||
ctx->count++;
|
ctx->count++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( gpuTime < zone->GpuStart() )
|
|
||||||
{
|
|
||||||
auto tmp = zone->GpuStart();
|
|
||||||
std::swap( gpuTime, tmp );
|
|
||||||
zone->SetGpuStart( tmp );
|
|
||||||
}
|
|
||||||
zone->SetGpuEnd( gpuTime );
|
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 )
|
void Worker::ProcessGpuCalibration( const QueueGpuCalibration& ev )
|
||||||
|
Loading…
Reference in New Issue
Block a user