Skip to content

fix: RPC events sync.#67

Merged
SaadBazaz merged 7 commits intomainfrom
rpc-sync-fix
May 11, 2024
Merged

fix: RPC events sync.#67
SaadBazaz merged 7 commits intomainfrom
rpc-sync-fix

Conversation

@momintlh
Copy link
Copy Markdown
Collaborator

@momintlh momintlh commented May 9, 2024

Temporary fix, RPC part needs to be refactored, might be better to handle within JS. #40

- RPC events name sync between players.
- Made Players dictionary private #66
@momintlh momintlh requested a review from SaadBazaz May 9, 2024 18:42
Copy link
Copy Markdown
Collaborator

@SaadBazaz SaadBazaz left a comment

Choose a reason for hiding this comment

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

Either my eyes are deceiving me, or I can't see the private Players change.

Comment thread Assets/PlayroomKit/PlayroomKit.cs
@momintlh momintlh requested a review from SaadBazaz May 9, 2024 18:50
Copy link
Copy Markdown
Collaborator

@SaadBazaz SaadBazaz left a comment

Choose a reason for hiding this comment

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

  • Add description comments
  • Write dry runs on all cases in mind (no need to actually build and run)

Comment thread Assets/PlayroomKit/PlayroomKit.cs Outdated
@SaadBazaz
Copy link
Copy Markdown
Collaborator

I have a hunch this methodology might cause Race conditions upon high load. Needs testing on high performance calls between multiple players, with multiple RPCs.

Instead of saving a state, maybe send some metadata alongside each RPC call? That way, it's guaranteed to reach along with the RPC call.

Copy link
Copy Markdown
Collaborator

@SaadBazaz SaadBazaz left a comment

Choose a reason for hiding this comment

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

What scenarios has this been tested on?

Comment thread Assets/PlayroomKit/PlayroomKit.cs
Comment thread Assets/PlayroomKit/PlayroomKit.cs
@SaadBazaz SaadBazaz mentioned this pull request May 11, 2024
@SaadBazaz
Copy link
Copy Markdown
Collaborator

SaadBazaz commented May 11, 2024

Merging in favor of a working solution instead of over engineering. Noted down problems in Refactor Umbrella issue.

@SaadBazaz SaadBazaz merged commit b105cce into main May 11, 2024
This was referenced May 11, 2024
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