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

NetworkTransformReliable is buggy when assigning/releasing client authority #3877

Open
vodolazov opened this issue Jul 26, 2024 · 0 comments

Comments

@vodolazov
Copy link

Describe the bug
Assign and release client authority causes NetworkTransformReliable to flicker and leave object transform out of sync. Not sure about SERVER-CLIENT config, but the bug is prominent in HOST-CLIENT config.

[IMPORTANT] How can we reproduce the issue, step by step:
Please tell us how to reproduce your issue, STEP BY STEP, with one of our built in examples.
-> Run HOST and connect CLIENT to the HOST
-> On HOST assign client authority to and object
-> BUG!!! On CLIENT the object flickers - momentarily jumps to a weird place and comes back
-> Move the object on HOST
-> Transform is in sync on CLIENT
-> Release authority on HOST
-> BUG!!! The onbject flickers again on CLIENT

Another sceneario:
-> On CLIENT -> assign authority and start updating transform
-> On HOST the object is in sync
-> On CLIENT release authority
-> BUG!!! On CLIENT the object jumps to a random location. This is not deterministic, but happens very often

This problem makes NetworkTransformReliable pretty useless in HOST-CLIENT config where authority used to manipulate objects transforms from client side.

The bug can be addressed by changing NetworkTransformReliable to NetworkTransformUnreliable, which works as expected.

Expected behavior
Setting client authority must enable transform propagation from client to server without going out of sync randomly.

Desktop (please complete the following information):

  • OS: Windows
  • Build target: UWP
  • Unity version: 2022.3
  • Mirror branch: 89.8.0

Additional context
I think the bug is present is HOST-CLIENT config. SERVER-CLIENT config is likely not affected.

@vodolazov vodolazov changed the title NetworkTransportReliable is buggy when assigning/releasing client authority NetworkTransformReliable is buggy when assigning/releasing client authority Jul 29, 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

No branches or pull requests

1 participant