GPU time adjust fixes.

This commit is contained in:
Bartosz Taudul 2019-08-04 00:38:08 +02:00
parent 9b7384b407
commit 6898fd9e42

View File

@ -2477,6 +2477,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;
const auto t = time - begin;
return time + t / 1000000000 * drift;
}