mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-29 12:05:30 +00:00
Merge pull request #1430 from alandtse/fix/d3d11-zero-frequency-divide
fix(d3d11): guard collector against zero frequency
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user