-
Notifications
You must be signed in to change notification settings - Fork 450
feat: snapshot. Fully integrated despawn, mtt-1092, mtt-1056 #1062
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
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
94313c7
feat: snapshot. Attempt at applying snapshot spawn branch over new me…
jeffreyrainy daa7477
feat: snapshot. Reusing spawn entries.
jeffreyrainy 9cb59e4
Merge branch 'develop' into experimental/snapshot-system-spawn3
jeffreyrainy 62e87d5
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 64bb7ec
feat: snapshot fix, prefab handling
jeffreyrainy 847adcd
feat: snapshot. reduce log spam
jeffreyrainy bc49244
Merge branch 'develop' into experimental/snapshot-system-spawn3
jeffreyrainy 4963d9c
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 10ed439
snapshot: merge preparation. Removing old acks, removing unused varia…
jeffreyrainy 9674acc
feat: snapshot. merge preparation. Removing old acks, removing unused…
jeffreyrainy bc4805d
Merge branch 'experimental/snapshot-prep2-spawn' of github.com:Unity-…
jeffreyrainy 5c9a703
Merge branch 'develop' into experimental/snapshot-prep2-spawn
0xFA11 411ef16
Merge branch 'experimental/snapshot-prep2-spawn' into experimental/sn…
jeffreyrainy 8201cd2
Merge branch 'experimental/snapshot-prep2-spawn' into experimental/sn…
jeffreyrainy 7a597b3
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy d2318bc
feat: snapshot. more reasonable sentinel checks around snapshot send/…
jeffreyrainy 9f81229
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy d0b6617
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 43c26f6
feat: snapshot. small clenaup
jeffreyrainy 4e32df9
feat: snapshot. Moving configuration items to NetworkConfig
jeffreyrainy 4222365
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 2bf493d
feat: snapshot. Adjusting to code standard
jeffreyrainy 16d3db1
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy d421c64
refactor: moved code from SpawnInternal into separate SendToSnapshot …
jeffreyrainy d891f1e
refactor: calling networkShow(NetworkObject) code in networkshow(List…
jeffreyrainy 7c55e4e
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 140a9e7
style: whitespace
jeffreyrainy 775eb83
Merge remote-tracking branch 'origin/experimental/snapshot-prep3-spaw…
jeffreyrainy 8494c4d
refactor: also using NetworkHide(NetworkObject) to implement NetworkH…
jeffreyrainy 767d9eb
Merge remote-tracking branch 'origin/experimental/snapshot-prep3-spaw…
jeffreyrainy ce3bb6f
feat: snapshot. Safer access to Connection RTT structures
jeffreyrainy 0c7a8b1
feat: snapshot. placeholder comment for code to come later
jeffreyrainy 1cd9af7
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 0c0b298
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy f8df5c7
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 121646f
feat: snapshot. Snapshot fully working for spawn test.
jeffreyrainy 1049f53
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 06284f5
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 1c17469
feat: snapshot. despawn going via snapshot. snapshot message size lim…
jeffreyrainy 2bc5ae1
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 60c1cc0
feat: snapshot. Incrementing the local span and despawn store (amorti…
jeffreyrainy cb38fd9
feat: snapshot. Using different list to keep track of spawn despawn t…
jeffreyrainy 948f4fa
feat: snapshot. extra logging for debugging
jeffreyrainy 75ba255
fix: snapshot. MTT-1056 despawn loss
jeffreyrainy 564dc26
feat: snapshot. Proper test for length used in snapshot message. Remo…
jeffreyrainy f79b182
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 3077c38
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 1984155
fix: snapshot. NetworkHide in snapshot mode was incorrectly hiding th…
jeffreyrainy e659949
feat: snapshot. Keeping snapshot disabled for this release
jeffreyrainy 192bcc3
style: coding standards fix
jeffreyrainy f8bddd1
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 081df43
test: making the networkshow/hide test more resistant to timing diffe…
jeffreyrainy 2c8fbbc
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 7599ac0
test: removing Sleep() code in NetworkShowHide that attempted to deal…
jeffreyrainy cf6b615
feat: snapshot. First pass at PR code review
jeffreyrainy 4c48ced
Merge remote-tracking branch 'origin/develop' into experimental/snaps…
jeffreyrainy 5015050
feat: snapshot. Adjusting to int ticks
jeffreyrainy dc9dfbc
feat: snapshot. Reducing the amount of logging, as this is getting me…
jeffreyrainy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Interesting, when I look at this code I'm expecting to see an 'else' where the old way of spawning happens. So
SnapshotSpawn
doesn't include a call toSendSpawnCallForObject
? Could it?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.
I've put in Slack a link to the lucidchart diagram about this "[Thursday PR]".
NetworkObject.Show
calls directly into Snapshot. It then calls intoSendSpawnCallForObject
inSpawnManager
. The old way, inSpawnManager
is then disabled, there. That's where the missingelse
isThat design came around because the other flow,
SpawnInternal
, can be put in Snapshot at once (one command for all connections). If I had put the Snapshot hook inSendSpawnCallForObject
thenSnapshotSystem
would get the same spawn multiple times. Similarly if I had refactored the old ways to be done for all connections at once, I would have touched code I didn't need to and risk breaking things.