Skip to content

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