mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't include inf/nan times in summation
* These can be generated by buggy drivers particularly on GL, so try to mitigate the effect of that.
This commit is contained in:
@@ -991,6 +991,9 @@ private:
|
||||
if(a.eventId >= m_Times.size())
|
||||
continue;
|
||||
|
||||
if(qIsNaN(m_Times[a.eventId]) || qIsInf(m_Times[a.eventId]))
|
||||
continue;
|
||||
|
||||
// add the time for this event, if it's non-negative. Because we fill out nodes in reverse
|
||||
// order, any children that are nodes themselves should be populated by now
|
||||
duration += qMax(0.0, m_Times[a.eventId]);
|
||||
|
||||
Reference in New Issue
Block a user