Skip to content

Commit fa6baae

Browse files
twpolcjakeman
andauthored
Update Source/Orts.Simulation/Simulation/Signalling/Signals.cs
Co-authored-by: Chris Jakeman <[email protected]>
1 parent 11d1cfe commit fa6baae

File tree

1 file changed

+3
-0
lines changed
  • Source/Orts.Simulation/Simulation/Signalling

1 file changed

+3
-0
lines changed

Source/Orts.Simulation/Simulation/Signalling/Signals.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,9 @@ public void Update(bool preUpdate)
570570
// loop through all signals
571571
``` // loop through all the signals, but only one batch of signals with every call to this method.
572572
// update required part
573+
``` // update one batch of signals. Batch ends when time taken exceeds 1/20th of time for all signals.
574+
// Processing 1/20th of signals in each batch gave a jerky result as processing time varies greatly.
575+
// Smoother results now that equal time is given to each batch and let the batch size vary.
573576
var updates = 0;
574577
var updateStep = 0;
575578
var targetTicks = Stopwatch.GetTimestamp() + UpdateTickTarget;

0 commit comments

Comments
 (0)