diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-04 02:42:44 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-04 02:42:44 +0300 |
commit | eed70398531cc4bbc9c956dbce36d0bd1541ee37 (patch) | |
tree | ed863e0ff201209c303d480db04c70f270a6caf2 /server/TracyView.cpp | |
parent | e87b8d455eaaa9582dea042fe418e41688abad76 (diff) |
Another GPU time adjust fix.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r-- | server/TracyView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GpuEvent*>& 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<int64_t>::max() ) return time; const auto t = time - begin; return time + t / 1000000000 * drift; } |