Skip to content

Commit b736bd2

Browse files
committed
Improve debug logging & Improve method naming
1 parent f9d0d6d commit b736bd2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Assets/UnityEventTimeline/Runtime/Internal/EventTimelineQueue.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public void SetMaxEventsPerFrame(int maxEvents)
429429
/// This limit ensures frame rate stability by limiting event processing time.
430430
/// Must be greater than 0.
431431
/// </remarks>
432-
public void SetMaxProcessingTime(float maxTimeMs)
432+
public void SetMaxProcessingTimePerFrame(float maxTimeMs)
433433
{
434434
maxProcessingTimeMs = Mathf.Max(0.1f, maxTimeMs);
435435
}
@@ -819,8 +819,8 @@ private int ProcessSingleBatch(int batchSize)
819819
continue;
820820
}
821821

822-
#if __EVENTTIMELINE_DEBUG_VERBOSE
823-
Debug.Log($"[EventTimelineQueue] Processing time limit reached ({maxProcessingTimeMs}ms). Adding remaining events to future queue.");
822+
#if __EVENTTIMELINE_DEBUG
823+
Debug.LogWarning($"[EventTimelineQueue] Processing time limit reached ({maxProcessingTimeMs}ms). Adding remaining events to future queue.");
824824
#endif
825825

826826
// Add remaining events to future events

Assets/UnityEventTimeline/Tests/EventTimelineQueueTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public IEnumerator ProcessEvents_RespectsMaxProcessingTime()
138138
// Arrange
139139
const float maxProcessingTime = 1f; // 1ms
140140
const int eventCount = 100;
141-
_queueManager.SetMaxProcessingTime(maxProcessingTime);
141+
_queueManager.SetMaxProcessingTimePerFrame(maxProcessingTime);
142142

143143
var executedEvents = new List<TestEvent>();
144144

Assets/UnityEventTimeline/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "io.ahmedkamal.unity.eventtimeline",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"displayName": "UnityEventTimeline",
55
"description": "A thread-safe event scheduling and timeline management system for Unity with efficient object pooling, priority-based event queue, and model-based state management. Features plug-and-play setup, time scaling, scene transition handling, and automatic memory optimization.",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)