From 6898fd9e4247498a20859072d2b8a8167cc7e8fb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 4 Aug 2019 00:38:08 +0200 Subject: [PATCH] GPU time adjust fixes. --- server/TracyView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 5368f1e5..c1b3c681 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2477,6 +2477,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; const auto t = time - begin; return time + t / 1000000000 * drift; }