We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d1cfe commit fa6baaeCopy full SHA for fa6baae
Source/Orts.Simulation/Simulation/Signalling/Signals.cs
@@ -570,6 +570,9 @@ public void Update(bool preUpdate)
570
// loop through all signals
571
``` // loop through all the signals, but only one batch of signals with every call to this method.
572
// 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.
576
var updates = 0;
577
var updateStep = 0;
578
var targetTicks = Stopwatch.GetTimestamp() + UpdateTickTarget;
0 commit comments