| 493 | |
| 494 | Stat() {} |
| 495 | void push(float time) |
| 496 | { |
| 497 | m_time = time; |
| 498 | |
| 499 | if (m_time > m_maxTime) |
| 500 | { |
| 501 | m_maxTime = m_time; |
| 502 | m_maxTimeAge = 0.f; |
| 503 | } |
| 504 | |
| 505 | if (fabsf(m_time - m_maxTime) < 0.25f * m_maxTime) |
| 506 | { |
| 507 | m_smoothTimeSum += m_time; |
| 508 | m_smoothTimeCount += 1.f; |
| 509 | m_smoothTimeSum *= 0.98f; |
| 510 | m_smoothTimeCount *= 0.98f; |
| 511 | m_smoothTime = m_smoothTimeSum / m_smoothTimeCount; |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | float pull(float frameTime) |
| 516 | { |
nothing calls this directly
no outgoing calls
no test coverage detected