Skip to content

fix: improve networking warning messages [MTT-1293] #1855

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 6 commits into from
Mar 31, 2022

Conversation

mattwalsh-unity
Copy link
Contributor

This PR changes how we deal with the "children with no parent" warning. In the old code, we sent an error whenever a child had no parent. This warning, at least in the current design, is not something worth warning users about, because it (if things are working properly) should always resolve, because we always update clients with every newly-spawned object in a single tick.

What is worth warning about is if we get to the end of a tick and still have not resolved the orphans. If this happens, and if the orphans have local transformations you would see popping as they go from an incorrect starting, non-rooted location to the correct location. This PR now warns if this situation happens.

In future, when it is normal behavior to have partial object spawns being synced this warning will need to be changed, but also our scheme for resolving children will need to change too (else there will be popping)

MTT-1293

  • No tests have been added.

Copy link
Contributor

@0xFA11 0xFA11 left a comment

Choose a reason for hiding this comment

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

minor nits but overall, looks good

mattwalsh-unity and others added 3 commits March 31, 2022 10:06
Co-authored-by: Fatih Mar <mfatihmar@gmail.com>
Co-authored-by: Fatih Mar <mfatihmar@gmail.com>
Co-authored-by: Fatih Mar <mfatihmar@gmail.com>
@mattwalsh-unity mattwalsh-unity enabled auto-merge (squash) March 31, 2022 17:06
@mattwalsh-unity mattwalsh-unity merged commit 9ffd22b into develop Mar 31, 2022
@mattwalsh-unity mattwalsh-unity deleted the fix/parenting-warning branch March 31, 2022 17:40
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