mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
comments
This commit is contained in:
parent
73f374e35c
commit
4f1751f725
@ -27,6 +27,9 @@ public static partial class NetworkClient
|
|||||||
// behind this 2 buffer target, leaving the rest of the drift to be
|
// behind this 2 buffer target, leaving the rest of the drift to be
|
||||||
// dealt with by catch up.
|
// dealt with by catch up.
|
||||||
//
|
//
|
||||||
|
// to reproduce, use the SnapshotInterpolation demo and minimize the
|
||||||
|
// Editor for a while. after coming back, it'll be behind a lot.
|
||||||
|
//
|
||||||
// Target time for sync = client/server time - buffer time.
|
// Target time for sync = client/server time - buffer time.
|
||||||
// Time difference = latest time snapshot time - buffer time
|
// Time difference = latest time snapshot time - buffer time
|
||||||
// If time difference > clampingBufferMultiplier(below) * buffer time, we clamp it to within
|
// If time difference > clampingBufferMultiplier(below) * buffer time, we clamp it to within
|
||||||
|
@ -117,6 +117,9 @@ public static bool InsertIfNotExists<T>(
|
|||||||
// Also, we don't snap to exactly 2 buffer behind, we snap to somewhere
|
// Also, we don't snap to exactly 2 buffer behind, we snap to somewhere
|
||||||
// behind this 2 buffer target, leaving the rest of the drift to be
|
// behind this 2 buffer target, leaving the rest of the drift to be
|
||||||
// dealt with by catch up.
|
// dealt with by catch up.
|
||||||
|
//
|
||||||
|
// to reproduce, use the SnapshotInterpolation demo and minimize the
|
||||||
|
// Editor for a while. after coming back, it'll be behind a lot.
|
||||||
public static void TimelineOverride(double latestRemoteTime, double bufferTime, float clampMultiplier, ref double localTimeline)
|
public static void TimelineOverride(double latestRemoteTime, double bufferTime, float clampMultiplier, ref double localTimeline)
|
||||||
{
|
{
|
||||||
// If we want local timeline to be around bufferTime slower,
|
// If we want local timeline to be around bufferTime slower,
|
||||||
|
Loading…
Reference in New Issue
Block a user