diff --git a/public/tracy/TracyD3D11.hpp b/public/tracy/TracyD3D11.hpp index 8de75d6b..837f28ac 100644 --- a/public/tracy/TracyD3D11.hpp +++ b/public/tracy/TracyD3D11.hpp @@ -108,7 +108,7 @@ public: continue; } - if (disjoint.Disjoint) + if (disjoint.Disjoint || disjoint.Frequency == 0) continue; UINT64 timestamp = 0; @@ -217,6 +217,13 @@ public: return; } + if (disjoint.Frequency == 0) + { + m_previousCheckpoint = m_nextCheckpoint; + TracyD3D11Panic("zero GPU timestamp frequency; dropping."); + return; + } + auto begin = m_previousCheckpoint; auto end = m_nextCheckpoint; for (auto i = begin; i != end; ++i)