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
@Faless Faless force-pushed the mp/replication_mode branch from 6524ded to f51531f Compare August 30, 2023 08:44
@Faless Faless force-pushed the mp/replication_mode branch from f51531f to cfed093 Compare August 30, 2023 12:45
@YuriSizov YuriSizov requested review from mhilbrunner and a team August 30, 2023 12:51
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.
@Faless Faless force-pushed the mp/replication_mode branch from 3a7bc74 to c1c6911 Compare August 30, 2023 13:38
@akien-mga akien-mga merged commit 98f6844 into godotengine:master Aug 31, 2023
@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