mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 02:50:23 +02:00
Merge branch 'atp' of https://github.com/birarda/hifi into protocol
This commit is contained in:
commit
4db2a77f9f
2 changed files with 4 additions and 4 deletions
|
@ -137,8 +137,8 @@ void NodeList::timePingReply(QSharedPointer<NLPacket> packet, const SharedNodePo
|
|||
|
||||
// The other node's expected time should be our original time plus the one way flight time
|
||||
// anything other than that is clock skew
|
||||
quint64 othersExprectedReply = ourOriginalTime + oneWayFlightTime;
|
||||
int clockSkew = othersReplyTime - othersExprectedReply;
|
||||
quint64 othersExpectedReply = ourOriginalTime + oneWayFlightTime;
|
||||
int clockSkew = othersReplyTime - othersExpectedReply;
|
||||
|
||||
sendingNode->setPingMs(pingTime / 1000);
|
||||
sendingNode->updateClockSkewUsec(clockSkew);
|
||||
|
@ -152,7 +152,7 @@ void NodeList::timePingReply(QSharedPointer<NLPacket> packet, const SharedNodePo
|
|||
" pingTime: " << pingTime << "\n" <<
|
||||
" oneWayFlightTime: " << oneWayFlightTime << "\n" <<
|
||||
" othersReplyTime: " << othersReplyTime << "\n" <<
|
||||
" othersExprectedReply: " << othersExprectedReply << "\n" <<
|
||||
" othersExprectedReply: " << othersExpectedReply << "\n" <<
|
||||
" clockSkew: " << clockSkew << "\n" <<
|
||||
" average clockSkew: " << sendingNode->getClockSkewUsec();
|
||||
}
|
||||
|
|
|
@ -34,4 +34,4 @@ if (WIN32)
|
|||
target_include_directories(${TARGET_NAME} PUBLIC ${OGLPLUS_INCLUDE_DIRS})
|
||||
endif (WIN32)
|
||||
|
||||
link_hifi_libraries(animation fbx shared gpu model render)
|
||||
link_hifi_libraries(animation fbx shared gpu model render environment)
|
||||
|
|
Loading…
Reference in a new issue