MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / push

Method push

demo/d3d11/appD3D11Ctx.cpp:495–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected