mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Merge branch 'vis2k:master' into master
This commit is contained in:
commit
f4449ceb8f
@ -1252,8 +1252,9 @@ internal void ClearAllComponentsDirtyBits()
|
|||||||
// Clear only dirty component's dirty bits. ignores components which
|
// Clear only dirty component's dirty bits. ignores components which
|
||||||
// may be dirty but not ready to be synced yet (because of syncInterval)
|
// may be dirty but not ready to be synced yet (because of syncInterval)
|
||||||
//
|
//
|
||||||
// IMPORTANT to clear SyncLists's changes to avoid ever
|
// NOTE: this used to be very important to avoid ever
|
||||||
// growing changes while not having observers etc.
|
// growing SyncList changes if they had no observers,
|
||||||
|
// but we've added SyncObject.isRecording since.
|
||||||
internal void ClearDirtyComponentsDirtyBits()
|
internal void ClearDirtyComponentsDirtyBits()
|
||||||
{
|
{
|
||||||
foreach (NetworkBehaviour comp in NetworkBehaviours)
|
foreach (NetworkBehaviour comp in NetworkBehaviours)
|
||||||
|
@ -1605,8 +1605,9 @@ static void BroadcastToConnection(NetworkConnectionToClient connection)
|
|||||||
// (we serialized only the IsDirty() components, or all of
|
// (we serialized only the IsDirty() components, or all of
|
||||||
// them if initialState. clearing the dirty ones is enough.)
|
// them if initialState. clearing the dirty ones is enough.)
|
||||||
//
|
//
|
||||||
// IMPORTANT to clear SyncLists's changes to avoid ever
|
// NOTE: this used to be very important to avoid ever
|
||||||
// growing changes while not having observers etc.
|
// growing SyncList changes if they had no observers,
|
||||||
|
// but we've added SyncObject.isRecording since.
|
||||||
//
|
//
|
||||||
// NOTE: this is what we did before push->pull
|
// NOTE: this is what we did before push->pull
|
||||||
// broadcasting. let's keep doing this for
|
// broadcasting. let's keep doing this for
|
||||||
|
Loading…
Reference in New Issue
Block a user