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:
parent
e87b8d455e
commit
eed7039853
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user