MirrorNetworking / MirrorNetworking/Mirror

NetworkIdentity.DeserializeServer sets all [SyncVar] dirty bits instead of the synced ones

Open
#3,294 1 comment 0 reactions 1 assignee View on GitHub

@miwarnec is already working on this.

Since Dec 5, 2022.

enhancement
Dominant language
C#
Stars
6.3k
Forks
870
PR merge metrics
No merged PRs in 30d

Description

that's because not all OnSerialize calls may have SyncVars.

however, OnDeserialize calls the syncvar setter for the ones which were modified.
-> simply set the dirty bit there.

... and then remove the SetDirty() call? but what about other types?
maybe only call SetDirty() if syncVarDirtyBits == 0 after deseriaalize

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.