Skip to content

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

Merged
merged 2 commits into from
Mar 31, 2022
Merged

Conversation

0xFA11
Copy link
Contributor

@0xFA11 0xFA11 commented Mar 30, 2022

Since snapshotting feature is removed from 1.0 lineup, this PR is scraping it to reduce our overall API surface.

Changelog

  • Removed SnapshotSystem

Testing and Documentation

  • Removed related tests
  • Documentation changes will happen under docs repo

@0xFA11 0xFA11 requested a review from a team as a code owner March 30, 2022 15:53
Comment on lines -141 to -153
/// <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;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

! aka API-breaking part

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor

@jeffreyrainy jeffreyrainy left a comment

Choose a reason for hiding this comment

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

s/SnapshotSystem//g.

@jeffreyrainy
Copy link
Contributor

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.

@0xFA11 0xFA11 enabled auto-merge (squash) March 31, 2022 01:39
Copy link
Contributor

@Rosme Rosme left a comment

Choose a reason for hiding this comment

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

LGTM

@0xFA11 0xFA11 merged commit f30b75e into develop Mar 31, 2022
@0xFA11 0xFA11 deleted the refactor/remove-snapshotsystem branch March 31, 2022 17:20
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.

4 participants