mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comments
This commit is contained in:
parent
e70be519e7
commit
ae1edff268
@ -511,14 +511,17 @@ void UpdateServerBaseline(double localTime)
|
|||||||
byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once!
|
byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once!
|
||||||
if (syncPosition && syncRotation)
|
if (syncPosition && syncRotation)
|
||||||
{
|
{
|
||||||
|
// no unreliable redundancy: baseline is reliable
|
||||||
RpcServerToClientBaseline_PositionRotation(frameCount, position, rotation);
|
RpcServerToClientBaseline_PositionRotation(frameCount, position, rotation);
|
||||||
}
|
}
|
||||||
else if (syncPosition)
|
else if (syncPosition)
|
||||||
{
|
{
|
||||||
|
// no unreliable redundancy: baseline is reliable
|
||||||
RpcServerToClientBaseline_Position(frameCount, position);
|
RpcServerToClientBaseline_Position(frameCount, position);
|
||||||
}
|
}
|
||||||
else if (syncRotation)
|
else if (syncRotation)
|
||||||
{
|
{
|
||||||
|
// no unreliable redundancy: baseline is reliable
|
||||||
RpcServerToClientBaseline_Rotation(frameCount, rotation);
|
RpcServerToClientBaseline_Rotation(frameCount, rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -700,14 +703,17 @@ void UpdateClientBaseline(double localTime)
|
|||||||
byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once!
|
byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once!
|
||||||
if (syncPosition && syncRotation)
|
if (syncPosition && syncRotation)
|
||||||
{
|
{
|
||||||
|
// no unreliable redundancy: baseline is reliable
|
||||||
CmdClientToServerBaseline_PositionRotation(frameCount, position, rotation);
|
CmdClientToServerBaseline_PositionRotation(frameCount, position, rotation);
|
||||||
}
|
}
|
||||||
else if (syncPosition)
|
else if (syncPosition)
|
||||||
{
|
{
|
||||||
|
// no unreliable redundancy: baseline is reliable
|
||||||
CmdClientToServerBaseline_Position(frameCount, position);
|
CmdClientToServerBaseline_Position(frameCount, position);
|
||||||
}
|
}
|
||||||
else if (syncRotation)
|
else if (syncRotation)
|
||||||
{
|
{
|
||||||
|
// no unreliable redundancy: baseline is reliable
|
||||||
CmdClientToServerBaseline_Rotation(frameCount, rotation);
|
CmdClientToServerBaseline_Rotation(frameCount, rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user