From 27e61b82049ee303c12981f11f2bbbe8b2e5bbd3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 9 Jun 2021 21:08:28 +0200 Subject: [PATCH] Remove not needed check. --- server/TracyWorker.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 849f4523..0a918f13 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -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 )