netfox icon indicating copy to clipboard operation
netfox copied to clipboard

Dial to tweak how often statesynchronizer sends property snapshots.

Open warsang opened this issue 11 months ago • 1 comments

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.

warsang avatar Feb 14 '25 20:02 warsang

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

elementbound avatar Feb 19 '25 19:02 elementbound