Skip to content

Commit

Permalink
Release 11.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Release Automat committed Jan 4, 2025
1 parent a2843b4 commit eefd18c
Show file tree
Hide file tree
Showing 55 changed files with 11,464 additions and 24,199 deletions.
24 changes: 24 additions & 0 deletions Packages/tlp.udonutils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,30 @@ The used pattern MAJOR.MINOR.PATCH indicates:

All notable changes to this project will be documented in this file.

### [11.2.0] - 2025-01-04

#### 🚀 Features

- *(Task)* Expose DefaultScheduler, add DeInitTask() callback, add EstimatedStepDuration for better framepacing, add GetNeededSteps()
- *(TaskScheduler)* Add GetProgress() of largest task, add DeInit of tasks, add DynamicIdleLimit which speeds up task processing when player head is not moving
- *(SyncedEvent)* Add SyncedEventByteArray

#### 🐛 Bug Fixes

- *(UtcTimeSource)* Set sync mode to None to prevent continuous sync on spawned PlayerObjects

#### 🚜 Refactor

- *(NtpTime)* Migrate from CyanPlayerObjects to VRC PlayerObjects

#### ⚙️ Miscellaneous Tasks

- *(Model)* Add debug logs to Dirty flag
- *(TLP_Essentials)* Update TaskScheduler defaults
- Bump version
- Remove WorldVersionCheck from NTP example scene
- Update assets

### [11.1.0] - 2024-12-22

#### 🚀 Features
Expand Down
28 changes: 24 additions & 4 deletions Packages/tlp.udonutils/Runtime/DesignPatterns/MVC/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,24 @@ public abstract class Model : MvcBase
/// </summary>
public bool IsModelInitialized { get; private set; }

public virtual bool Dirty { get; set; }
public virtual bool Dirty
{
get { return _dirty; }
set
{
#region TLP_DEBUG
#if TLP_DEBUG
DebugLog($"{nameof(Dirty)}: {nameof(_dirty)}={value}");
#endif
#endregion


_dirty = value;
}
}

private bool _dirty;

public UdonEvent ChangeEvent { get; private set; }
#endregion

Expand All @@ -49,7 +66,8 @@ public bool Initialize(UdonEvent changeEvent) {
}

if (!string.IsNullOrEmpty(CriticalError)) {
Error($"{nameof(Initialize)}: Can not initialize again due to previous critical error: '{CriticalError}'");
Error($"{nameof(Initialize)}: Can not initialize again due to previous critical error: " +
$"'{CriticalError}'");
return false;
}

Expand All @@ -67,7 +85,8 @@ public bool Initialize(UdonEvent changeEvent) {
ChangeEvent = changeEvent;
ChangeEvent.ListenerMethod = OnModelChangedCallbackName;
if (!ChangeEvent.AddListenerVerified(this, OnModelChangedCallbackName)) {
Error($"{nameof(Initialize)}: Adding to {nameof(ChangeEvent)} with callback '{OnModelChangedCallbackName}' failed");
Error($"{nameof(Initialize)}: Adding to {nameof(ChangeEvent)} with callback " +
$"'{OnModelChangedCallbackName}' failed");
return false;
}

Expand Down Expand Up @@ -149,7 +168,8 @@ public bool NotifyIfDirty(int delayFrames = 0) {

if (delayFrames < 1) {
if (!ChangeEvent.Raise(this)) {
Error($"{nameof(NotifyIfDirty)}: Failed to raise {nameof(ChangeEvent)} '{ChangeEvent.ListenerMethod}'");
Error(
$"{nameof(NotifyIfDirty)}: Failed to raise {nameof(ChangeEvent)} '{ChangeEvent.ListenerMethod}'");
return false;
}

Expand Down
Loading

0 comments on commit eefd18c

Please sign in to comment.