Better GPU time check.

This commit is contained in:
Bartosz Taudul 2019-10-30 22:35:58 +01:00
parent ae4794ab4c
commit 0ac432dd25

View File

@ -3308,7 +3308,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 || time == std::numeric_limits<int64_t>::max() ) return time;
if( time < 0 || time == std::numeric_limits<int64_t>::max() ) return time;
const auto t = time - begin;
return time + t / 1000000000 * drift;
}