mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Split View navigation functions.
This commit is contained in:
@@ -718,4 +718,11 @@ const char* View::SourceSubstitution( const char* srcFile ) const
|
||||
return res.c_str();
|
||||
}
|
||||
|
||||
int64_t View::AdjustGpuTime( int64_t time, int64_t begin, int drift )
|
||||
{
|
||||
if( time < 0 ) return time;
|
||||
const auto t = time - begin;
|
||||
return time + t / 1000000000 * drift;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user