mirror of
https://github.com/Kaveinator/NetickProForUnity.git
synced 2025-10-26 09:49:06 -07:00
Fixed a rare issue that causes an OnChanged method not to be invoked when a misprediction occurs (on another variable) that causes the variable to change but no OnChanged callback is ever invoked, even though the value before rollback and the value after rollback & resimulation weren't the same.
This commit is contained in:
@@ -63,8 +63,8 @@ namespace Netick.Samples
|
||||
public void DrawIcons()
|
||||
{
|
||||
var pktLossIconPos = PacketLossIconOffset + (Screen.width * Vector2.right);
|
||||
var latencyIconPos = LatencyIconOffset + (Screen.width * Vector2.right);
|
||||
var serverLagIconPos = ServerLagIconOffset + (Screen.width * Vector2.right);
|
||||
var latencyIconPos = LatencyIconOffset + (Screen.width * Vector2.right);
|
||||
var serverLagIconPos = ServerLagIconOffset + (Screen.width * Vector2.right);
|
||||
|
||||
var pktLoss = Mathf.Max(Sandbox.InPacketLoss, Sandbox.OutPacketLoss) * 100; // multiplying by 100 to convert from a decimal to a percentage.
|
||||
var rtt = Sandbox.RTT * 1000f; // multiplying by 1000 to convert from seconds to milliseconds.
|
||||
|
||||
Reference in New Issue
Block a user