-
Notifications
You must be signed in to change notification settings - Fork 450
refactor!: remove SnapshotSystem
#1852
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
Conversation
/// <summary> | ||
/// Whether or not to enable Snapshot System for variable updates. Not supported in this version. | ||
/// </summary> | ||
public bool UseSnapshotDelta { get; internal set; } = false; | ||
/// <summary> | ||
/// Whether or not to enable Snapshot System for spawn and despawn commands. Not supported in this version. | ||
/// </summary> | ||
public bool UseSnapshotSpawn { get; internal set; } = false; | ||
/// <summary> | ||
/// When Snapshot System spawn is enabled: max size of Snapshot Messages. Meant to fit MTU. | ||
/// </summary> | ||
public int SnapshotMaxSpawnUsage { get; } = 1000; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
aka API-breaking part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(this is fine)
@@ -46,15 +46,14 @@ public class NetworkManager : MonoBehaviour, INetworkUpdateSystem | |||
private static ProfilerMarker s_TransportDisconnect = new ProfilerMarker($"{nameof(NetworkManager)}.TransportDisconnect"); | |||
#endif | |||
|
|||
private const double k_TimeSyncFrequency = 1.0d; // sync every second, TODO will be removed once timesync is done via snapshots | |||
private const double k_TimeSyncFrequency = 1.0d; // sync every second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that you caught this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/SnapshotSystem//g
.
Some of the tools tests had been rewritten (for snapshot) to allow extra messages (which happened to be SnapshotSystem messages). Here, you did not tighten those tests back. But I think this is still ok. Maybe the original tests were too strict, or making too much assumption. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Since snapshotting feature is removed from 1.0 lineup, this PR is scraping it to reduce our overall API surface.
Changelog
SnapshotSystem
Testing and Documentation