Skip to content

RID_Owner: Fix race conditions due to missing synchronization#114980

Closed
RandomShaper wants to merge 1 commit intogodotengine:masterfrom
RandomShaper:fix_rid_sync
Closed

RID_Owner: Fix race conditions due to missing synchronization#114980
RandomShaper wants to merge 1 commit intogodotengine:masterfrom
RandomShaper:fix_rid_sync

Conversation

@RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Jan 15, 2026

If my assessment is correct, this would fix the issue. However, this topic is tricky enough for me not to take it for granted. In fact, the issue exists because of a mistake from me in the first place.

Fixes #114900.

Alernative to #114937.

@RandomShaper RandomShaper added this to the 4.7 milestone Jan 15, 2026
@RandomShaper RandomShaper requested a review from a team as a code owner January 15, 2026 10:46
@RandomShaper RandomShaper added bug topic:core needs testing cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release cherrypick:4.6 Considered for cherry-picking into a future 4.6.x release labels Jan 15, 2026
@blueskythlikesclouds
Copy link
Contributor

This doesn't fix it on my M4 Pro MBP.

@RandomShaper
Copy link
Member Author

@blueskythlikesclouds, thanks a lot for testing! Could you please try with #define WEAK_MEMORY_ORDER 1 in core\templates\rid_owner.h?

Initially, I deemed true memory fences as not needed on ARM due to its data dependency tracking. However, it may be the case that some logic in RID_Owner is not sufficiently protected by that.

@blueskythlikesclouds
Copy link
Contributor

@blueskythlikesclouds, thanks a lot for testing! Could you please try with #define WEAK_MEMORY_ORDER 1 in core\templates\rid_owner.h?

Still not fixed unfortunately.

@akien-mga
Copy link
Member

Superseded by #114963. Can be reused once #112657 is attempted again.

@akien-mga akien-mga closed this Jan 16, 2026
@akien-mga akien-mga added archived and removed cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release cherrypick:4.6 Considered for cherry-picking into a future 4.6.x release labels Jan 16, 2026
@akien-mga akien-mga removed this from the 4.7 milestone Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPUParticles3D: emitter only draws particle at origin on macOS arm64

4 participants