Skip to content

keep the host's weather on the other players at the top of the hour and sync the clock seconds - #133

Closed
koltrbtw wants to merge 1 commit into
Tornamic:mainfrom
koltrbtw:upstream/weather-time-sync
Closed

koltrbtw wants to merge 1 commit into
Tornamic:mainfrom
koltrbtw:upstream/weather-time-sync

Conversation

@koltrbtw

Copy link
Copy Markdown

Each player advanced its own weather list from its own region when its clock passed the hour, and a packet moving the minute back made the game take it as a new hour, so the sky differed until the next packet. The other players now force the host's next weather, line the interpolation up with the host's clock and get its progress through the minute; the host sends at once when its weather changes.

Video (Recorded with two local clients on one machine: left is the host, right is the second player.): U14-weather-time-sync.mp4

The clock passes 12:00 with a change from sunny to rain; the sky is the same on both.

…nd sync the clock seconds

Each player advanced its own weather list from its own region when its clock passed the hour, and a packet moving the minute back made the game take it as a new hour, so the sky differed until the next packet. The other players now force the host's next weather, line the interpolation up with the host's clock and get its progress through the minute; the host sends at once when its weather changes.
@Tornamic Tornamic closed this Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants