MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / interpolationLeadTime

Method interpolationLeadTime

source/game/StarInterpolationTracker.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59float InterpolationTracker::interpolationLeadTime() const {
60 if (!m_interpolationEnabled || !m_predictedTime || !m_lastTimeUpdate)
61 return 0.0f;
62 return *m_lastTimeUpdate - *m_predictedTime + m_timeLead;
63}
64
65}

Callers 2

handleIncomingPacketsMethod · 0.80
handleIncomingPacketsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected