Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MP] Improve SceneReplicationConfig editor UX + optimizations #81136

Merged
merged 2 commits into from Aug 31, 2023

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Aug 29, 2023

Make "Sync" and "Watch" mutually exclusive by adding an enum (Never/Always/On Change).

Deprecate old methods.

Prevent invalid NodePath from being added to the config.

Optimize the replication config loading by composing the lists on demand.

Fixes #77896

never_always_change

@Faless Faless force-pushed the mp/replication_mode branch 2 times, most recently from d12384e to 6524ded Compare August 29, 2023 18:54
@akien-mga akien-mga added this to the 4.2 milestone Aug 29, 2023
REPLICATION_MODE_ALWAYS (sync) and REPLICATION_MODE_ON_CHANGE (watch)
are now mutually exclusive.

Prevent invalid NodePath from being added to the config.

Optimize the replication config loading by composing the lists on
demand.
Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

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

This change is desired because there was a lot of confusion around the flags. The code looks good too, aside from a couple of nits that I've left.

@Faless Faless force-pushed the mp/replication_mode branch 3 times, most recently from bccef21 to 3a7bc74 Compare August 30, 2023 13:30
Use an option button for the replication mode making sync and watch (now
"Always" and "On Change") mutually exclusive.
@akien-mga akien-mga merged commit 98f6844 into godotengine:master Aug 31, 2023
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Faless Faless deleted the mp/replication_mode branch August 31, 2023 09:40
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.

Improve MultiplayerSynchronizer editor UX to prevent setting both Sync and Watch
5 participants