Skip to content

Commit

Permalink
Release 5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Release Automat committed Apr 14, 2024
1 parent c826ca1 commit 766936c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Packages/tlp.udonutils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions Packages/tlp.udonutils/Runtime/Sources/Time/TlpNetworkTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ public double GetGameTimeOffset() {
DriftCompensationRate * _offsetSampleCount / Samples
);
}

/// <summary>
/// Current delta to the provided network time: (real network time - TLP network time)
/// </summary>
public double ExactError { get; private set; }
#endregion

#region Internal
Expand Down Expand Up @@ -193,6 +198,7 @@ internal void UpdateTime() {
return;
}

ExactError = NetworkTime.TimeAsDouble() - (GameTime.TimeAsDouble() + GetGameTimeOffset());
_frameLastUpdated = FrameCount.Frame();

#if TLP_DEBUG
Expand Down
4 changes: 2 additions & 2 deletions Packages/tlp.udonutils/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 766936c

Please sign in to comment.