mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
GPU time adjust fixes.
This commit is contained in:
parent
9b7384b407
commit
6898fd9e42
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user