Skip to content

fix PathGridDoorsBlockedJob race: snapshot pawn positions before job …#883

Merged
notfood merged 1 commit intorwmt:devfrom
Sakura-TA:fix/pathgrid-doors-blocked-position-race
Apr 18, 2026
Merged

fix PathGridDoorsBlockedJob race: snapshot pawn positions before job …#883
notfood merged 1 commit intorwmt:devfrom
Sakura-TA:fix/pathgrid-doors-blocked-position-race

Conversation

@Sakura-TA
Copy link
Copy Markdown
Contributor

fix for https://discord.com/channels/524286515644203028/568070216626470922/1493717766006374552
played for 1 day and haven't met a desync during compats yet. the deep-copy seems not affecting performance very much, I didn't really noticed the tps drop so maybe need to use performance analyser to judge this.

I also have a version that logging whether the postion changed in tick or threads read it first. And I'd put my test results here too.
Host side:
Threads read first. for my save when I got manhunting incident with 100 wolfs can see the ticks run first for many of them.
Client side:
mostly threads read first, but still sometimes got ticks run first without a battle, I believe this is why sometimes we observe a wild animal trigger a desync randomly.
multithread issues got random chance happening due to player's computer set, so I can only say that it triggers a bit often on my enviroment.

@notfood notfood added fix Fixes for a bug or desync. desync Bug that specifically causes a desynced state. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). labels Apr 17, 2026
@notfood notfood moved this to In review in 1.6 and Odyssey Apr 17, 2026
Copy link
Copy Markdown
Member

@notfood notfood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find

@notfood notfood merged commit 4e9881c into rwmt:dev Apr 18, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In review to Done in 1.6 and Odyssey Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). desync Bug that specifically causes a desynced state. fix Fixes for a bug or desync.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants