NetworkTransformUnreliable: UpdateServerInterpolation helper function

This commit is contained in:
vis2k 2023-03-14 17:16:54 +08:00
parent 255789bc57
commit 6e142d8cc0

View File

@ -120,11 +120,8 @@ void UpdateServerBroadcast()
}
}
void UpdateServer()
void UpdateServerInterpolation()
{
// broadcast to all clients each 'sendInterval'
UpdateServerBroadcast();
// apply buffered snapshots IF client authority
// -> in server authority, server moves the object
// so no need to apply any snapshots there.
@ -155,6 +152,15 @@ void UpdateServer()
}
}
void UpdateServer()
{
// broadcast to all clients each 'sendInterval'
UpdateServerBroadcast();
// apply buffered snapshots IF client authority
UpdateServerInterpolation();
}
void UpdateClientBroadcast()
{
// https://github.com/vis2k/Mirror/pull/2992/