Sync interval settings: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Added PL)
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:
| player_sync_interval
| player_sync_interval
| 100
| 100
| 50-300
| 50-4000
| Time between key sync correction updates for players. (Note: Player key sync is always done on demand and is not affected by any setting)
| Time between key sync correction updates for players. (Note: Player key sync is always done on demand and is not affected by any setting) (Note2: Don't set player_sync_interval interval too high, it will cause fake network troubles)
|-
|-
| lightweight_sync_interval
| lightweight_sync_interval
| 1500
| 1500
| 150-4000
| 50-4000
| Time between updates for very far away players
| Time between updates for very far away players
|-
|-
| camera_sync_interval
| camera_sync_interval
| 500
| 500
| 100-1000
| 50-4000
| How often to tell the server of any client side changes to the local players camera position and target.
| How often to tell the server of any client side changes to the local players camera position and target.
|-
|-
| ped_sync_interval
| ped_sync_interval
| 400
| 400
| 100-1000
| 50-4000
| Time between updates for non-player peds
| Time between updates for non-player peds
|-
| ped_far_sync_interval
| 2000
| 50-4000
| Time between updates for non-player peds for clients which are far away from the ped.
|-
|-
| unoccupied_vehicle_sync_interval
| unoccupied_vehicle_sync_interval
| 1000
| 1000
| 100-1000
| 50-4000
| Time between updates for unoccupied vehicles
| Time between updates for unoccupied vehicles
|-
|-
| keysync_mouse_sync_interval
| keysync_mouse_sync_interval
| 100
| 100
| 50-200
| 50-4000
| Minimum gap between mouse movement updates being sent to the server
| Minimum gap between mouse movement updates being sent to the server
|-
|-
| keysync_analog_sync_interval
| keysync_analog_sync_interval
| 100
| 100
| 50-200
| 50-4000
| Minimum gap between joystick partial axes movement updates being sent to the server. (Full axes movement is treated as key sync and is not limited by this setting)
| Minimum gap between joystick partial axes movement updates being sent to the server. (Full axes movement is treated as key sync and is not limited by this setting)
|-
|-
Line 92: Line 97:
|-
|-
|}
|}
[[pl:Sync interval settings]]

Latest revision as of 12:11, 19 April 2024

About player sync

Player key sync is always done on demand. i.e. Player presses W, (or pushes forward on the joystick), and the sync for that is sent straight away to the server, and then to the other clients. There is no setting to limit key sync as it is an essential component to minimize latency. The 'player_sync_interval' below, is the interval between positional and rotational corrections to key sync. This is in case the movement interpreted by the key sync system on remote clients has introduced any errors.

Default values

Name Default (ms) Valid range Description
player_sync_interval 100 50-4000 Time between key sync correction updates for players. (Note: Player key sync is always done on demand and is not affected by any setting) (Note2: Don't set player_sync_interval interval too high, it will cause fake network troubles)
lightweight_sync_interval 1500 50-4000 Time between updates for very far away players
camera_sync_interval 500 50-4000 How often to tell the server of any client side changes to the local players camera position and target.
ped_sync_interval 400 50-4000 Time between updates for non-player peds
ped_far_sync_interval 2000 50-4000 Time between updates for non-player peds for clients which are far away from the ped.
unoccupied_vehicle_sync_interval 1000 50-4000 Time between updates for unoccupied vehicles
keysync_mouse_sync_interval 100 50-4000 Minimum gap between mouse movement updates being sent to the server
keysync_analog_sync_interval 100 50-4000 Minimum gap between joystick partial axes movement updates being sent to the server. (Full axes movement is treated as key sync and is not limited by this setting)

Suggested settings

Bandwith and CPU saver

player_sync_interval 200
lightweight_sync_interval 3000

Bandwith and CPU super saver

player_sync_interval 300
lightweight_sync_interval 4000

Less annoying unoccupied vehicles

unoccupied_vehicle_sync_interval 500

Uber sync (bandwidth and CPU intensive)

player_sync_interval 50
keysync_mouse_sync_interval 50
keysync_analog_sync_interval 50