News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

New debug sums to monitor car/pedestrian randomness

Started by freddyhayward, September 18, 2021, 10:40:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freddyhayward

The purpose of this pull request is to help track down frequent desyncs occurring at some point during the sync_step. My hypothesis is that there is a discrepancy in the random behaviour of cars or pedestrians. If this is correct, then we would observe differences in these new sums which would help to further isolate the problem. If not, another approach will have to be found.

These sums replace the existing sums at [8] & [9] counting the number of sync objects, which didn't seem to correspond to any recent desyncs.

The pull request can be found here: https://github.com/jamespetts/simutrans-extended/pull/445

jamespetts

Excellent, now incorporated. Thank you for your work on this.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

freddyhayward

Quote from: jamespetts on September 18, 2021, 10:45:24 AM
Excellent, now incorporated. Thank you for your work on this.
It doesn't seem to have been incorporated yet. Was this intentional?

jamespetts

Quote from: freddyhayward on September 18, 2021, 10:59:01 AM
It doesn't seem to have been incorporated yet. Was this intentional?

Oops - forgot to push. Now done.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

If it is as standard, the eye-candy like clouds and pedestrians should not affect the random state.

freddyhayward

Quote from: prissi on September 18, 2021, 12:48:04 PMIf it is as standard, the eye-candy like clouds and pedestrians should not affect the random state.
I don't know why, but extended pedestrians do affect the random state.