From eed70398531cc4bbc9c956dbce36d0bd1541ee37 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Aug 2019 01:42:44 +0200 Subject: [PATCH] Another GPU time adjust fix. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9a4fe24d..2821cb06 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2478,7 +2478,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 ) return -1; + if( time == -1 || time == std::numeric_limits::max() ) return time; const auto t = time - begin; return time + t / 1000000000 * drift; }