From 0ac432dd25b8d315ec5a4ce7f8372edf2c4451a1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 30 Oct 2019 22:35:58 +0100 Subject: [PATCH] Better GPU time check. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index fad735dd..32609e13 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3308,7 +3308,7 @@ int View::DispatchGpuZoneLevel( const Vector& vec, bool hover, double static int64_t AdjustGpuTime( int64_t time, int64_t begin, int drift ) { - if( time == -1 || time == std::numeric_limits::max() ) return time; + if( time < 0 || time == std::numeric_limits::max() ) return time; const auto t = time - begin; return time + t / 1000000000 * drift; }