Skip to content

Commit b05a0aa

Browse files
committed
update delay comment
1 parent 6ae008e commit b05a0aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenDreamRuntime/Procs/ProcScheduler.Delays.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public Task CreateDelayTicks(int ticks, int procId, int threadId) {
5353
// Now, BYOND apparently does have a difference between 0 and -1. See https://github.com/OpenDreamProject/OpenDream/issues/1262#issuecomment-1563663041
5454
// 0 delays until all other sleeping procs have had a chance to resume if their sleep time has elapsed.
5555
// We achieve this by putting the proc on the _deferredTasks lists, so it can be immediately executed again.
56-
// -1 yields "only if other pending events have become backlogged" according to the BYOND docs. This does NOT include other procs, but
57-
// seems to apply to pending i/o events. In testing, this tends to amount to the same as one thread sleeping with -1 twenty times in one tick or a single proc ten times.
56+
// -1 yields "only if other pending events have become backlogged" according to the BYOND docs.
57+
// In simple testing, this tends to amount to the same as one thread sleeping with -1 twenty times in one tick or a single proc ten times.
5858

5959
if (ticks < 0) {
6060
var yieldTracker = YieldTrackersByThread.GetValueOrDefault(threadId, new());

0 commit comments

Comments
 (0)