[cmds] Add accurate train timing to sl #1723
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds an accurate 40ms "cycle time" between each train re-display, so that the
sl
train should always chug along at a constant speed on all systems (or at least as fast as possible on slower systems).sl
now calculates a minimum cycle of 40 ms and will add a delay if the last display cycle was quicker than that. This now helps the illusion that all trains have equal conductors (yes, I'm talking about your 8088 systems @Vutshi).In order to continue to use
sl
as an indicator of how fast or slow your system may actually be without a delay, a new-f
option was added:sl -f
will run the trains off the tracks if your system is fast enough (which is the same assl
previously with no option).To summarize our steam powered evolution:
This finalizes all of the reported problems in #1619.