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:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -63,8 +63,8 @@ namespace Netick.Samples
|
|||||||
public void DrawIcons()
|
public void DrawIcons()
|
||||||
{
|
{
|
||||||
var pktLossIconPos = PacketLossIconOffset + (Screen.width * Vector2.right);
|
var pktLossIconPos = PacketLossIconOffset + (Screen.width * Vector2.right);
|
||||||
var latencyIconPos = LatencyIconOffset + (Screen.width * Vector2.right);
|
var latencyIconPos = LatencyIconOffset + (Screen.width * Vector2.right);
|
||||||
var serverLagIconPos = ServerLagIconOffset + (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 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.
|
var rtt = Sandbox.RTT * 1000f; // multiplying by 1000 to convert from seconds to milliseconds.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.karrar.netick",
|
"name": "com.karrar.netick",
|
||||||
"version": "0.12.24",
|
"version": "0.12.25",
|
||||||
"displayName": "Netick",
|
"displayName": "Netick",
|
||||||
"description": "A networking solution for Unity",
|
"description": "A networking solution for Unity",
|
||||||
"unity": "2021.3",
|
"unity": "2021.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user