1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Another GPU time adjust fix.

This commit is contained in:
Bartosz Taudul 2019-08-04 01:42:44 +02:00
parent e87b8d455e
commit eed7039853

View File

@ -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;
}