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

Dial to tweak how often statesynchronizer sends property snapshots. #405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

warsang
Copy link

@warsang warsang commented Feb 14, 2025

Pretty simple change, added a dial to tweak how often we want to update/send state back to the client when using a statesynchronizer node. This is similar to the Multiplayer's Replication Interval option. My use case for this was I had resource nodes spawned on a map and I didn't want to send updates every network tick since their properties shouldn't be updated that often.

The Replicate "onchange" with the normal MultiplayerSynchronizer doesn't really fit my use-case because if a peer disconnects/reconnects, they don't get the node's position unless the node is moved (which doesn't happen often). My options were either use a Netfox statesynchronizer but updates are sent pretty often or use Replicate "always" with the multiplayer synchronizer and tweak the replication Interval dial to save on bandwidth.

  the client when using a statesynchronizer node
@elementbound
Copy link
Contributor

Thanks for the PR @warsang! Have you tested this with TickInterpolator? How did it perform?

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.

2 participants