Skip to content
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

Add peer visibility to MultiplayerSynchronizer. #62961

Merged
merged 1 commit into from
Jul 20, 2022

Commits on Jul 20, 2022

  1. Add peer visibility to MultiplayerSynchronizer.

    MultiplayerSynchronizers can now be configured to limit their visibility
    to a subset of the connected peers, if the synchronized node was spawned
    by a MultiplayerSpawner (either automatically or via custom spawn) the
    given node will also be despawned remotely.
    
    The replication system doesn't have the logic to handle subspawn
    directly, but it is possible to handle them appropriately by manually
    updating the visibility of the parent before changing the one of the
    nested spawns via the "update_visibility" function.
    
    The visibility of each MultiplayerSynchronizer can be controlled by
    adding or remove filters via "[add|remove]_visibility_filter(callable)".
    
    To further optimize the network code, visibility filters can be configured
    to be automatically updated during idle or physics frame, or set to always
    require manual update (via the "update_visibility" function).
    Faless committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    ddee5f6 View commit details
    Browse the repository at this point in the history