You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OnHundredthTick() should be called once for every 100 ticks.
Actual result
OnHundredthTick() is called once every 3 seconds.
Steps to reproduce
Where a tick takes any time other than exactly 30 ms to process, the assumption PER_TICK == 30 is false. To simulate such a condition add sleep(1000 ms) inside GameLoop().
Although one can say that #6780 should have renamed the function when the implementation got changed, by no means this is a bug. It might be confusing to the reader, and as such we would accept a PR to rename this function into a proper name (and in fact, we would welcome that!).
However, to be clear, we are not going to change the implementation to comply with the name :D That would be silly ;)
Anyway, as this is not a bug, I am going to close this issue. If you feel up for it, please do make a PR. Otherwise, one of the devs will come around doing that sooner or later :)
Versions
1.10.0-RC1
Expected result
OnHundredthTick() should be called once for every 100 ticks.
Actual result
OnHundredthTick() is called once every 3 seconds.
Steps to reproduce
Where a tick takes any time other than exactly 30 ms to process, the assumption PER_TICK == 30 is false. To simulate such a condition add sleep(1000 ms) inside GameLoop().
OpenTTD/src/window.cpp
Lines 3128 to 3132 in 5b52f25
OpenTTD/src/window.cpp
Lines 3179 to 3186 in 5b52f25
The text was updated successfully, but these errors were encountered: