From 766936cfbe9145408f8e18836acfde38e789a6af Mon Sep 17 00:00:00 2001 From: Release Automat <> Date: Sun, 14 Apr 2024 20:05:26 +0000 Subject: [PATCH] Release 5.3.0 --- Packages/tlp.udonutils/README.md | 6 ++++++ .../tlp.udonutils/Runtime/Sources/Time/TlpNetworkTime.cs | 6 ++++++ Packages/tlp.udonutils/package.json | 4 ++-- README.md | 6 ++++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Packages/tlp.udonutils/README.md b/Packages/tlp.udonutils/README.md index 5034c48..b340c2e 100644 --- a/Packages/tlp.udonutils/README.md +++ b/Packages/tlp.udonutils/README.md @@ -30,6 +30,12 @@ The used pattern MAJOR.MINOR.PATCH indicates: All notable changes to this project will be documented in this file. +### [5.3.0] - 2024-04-14 + +#### 🚀 Features + +- *(TlpNetworkTime)* Add ExactError property + ### [5.2.4] - 2024-04-14 #### 🐛 Bug Fixes diff --git a/Packages/tlp.udonutils/Runtime/Sources/Time/TlpNetworkTime.cs b/Packages/tlp.udonutils/Runtime/Sources/Time/TlpNetworkTime.cs index 898738a..0adbfc8 100644 --- a/Packages/tlp.udonutils/Runtime/Sources/Time/TlpNetworkTime.cs +++ b/Packages/tlp.udonutils/Runtime/Sources/Time/TlpNetworkTime.cs @@ -166,6 +166,11 @@ public double GetGameTimeOffset() { DriftCompensationRate * _offsetSampleCount / Samples ); } + + /// + /// Current delta to the provided network time: (real network time - TLP network time) + /// + public double ExactError { get; private set; } #endregion #region Internal @@ -193,6 +198,7 @@ internal void UpdateTime() { return; } + ExactError = NetworkTime.TimeAsDouble() - (GameTime.TimeAsDouble() + GetGameTimeOffset()); _frameLastUpdated = FrameCount.Frame(); #if TLP_DEBUG diff --git a/Packages/tlp.udonutils/package.json b/Packages/tlp.udonutils/package.json index d029e74..8742c60 100644 --- a/Packages/tlp.udonutils/package.json +++ b/Packages/tlp.udonutils/package.json @@ -1,7 +1,7 @@ { "name": "tlp.udonutils", "displayName": "TLP UdonUtils", - "version": "5.2.4", + "version": "5.3.0", "description": "Contains the base scripts/tools for TLP packages as well as prefabs and potentially helpful scripts for VRChat worlds.", "gitDependencies": {}, "legacyFolders": { @@ -15,7 +15,7 @@ }, "vpmDependencies": { "com.vrchat.worlds": "^3.5.x", - "com.cyan.playerobjectpool": "^1.1.x" + "com.cyan.playerobjectpool": "1.1.x" }, "unity": "2022.3" } diff --git a/README.md b/README.md index 5034c48..b340c2e 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ The used pattern MAJOR.MINOR.PATCH indicates: All notable changes to this project will be documented in this file. +### [5.3.0] - 2024-04-14 + +#### 🚀 Features + +- *(TlpNetworkTime)* Add ExactError property + ### [5.2.4] - 2024-04-14 #### 🐛 Bug Fixes