mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Add ~2 second overflow grace period.
This fixes issues when the GPU is actually permitted to report out-of-order timestamps (e.g. when tasks are scheduled by the GPU, instead of being forced to execute in submission order).
This commit is contained in:
parent
733d267768
commit
bcaac7b53f
@ -5693,7 +5693,7 @@ void Worker::ProcessGpuTime( const QueueGpuTime& ev )
|
||||
int64_t tgpu = m_refTimeGpu + ev.gpuTime;
|
||||
m_refTimeGpu = tgpu;
|
||||
|
||||
if( tgpu < ctx->lastGpuTime )
|
||||
if( tgpu < ctx->lastGpuTime - ( 1u << 31 ) )
|
||||
{
|
||||
if( ctx->overflow == 0 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user