feat: server ping timeout preferences

This commit is contained in:
Fabian
2021-07-26 17:42:13 +02:00
parent 4c1cd6b8f8
commit a49d9ee437
3 changed files with 16 additions and 5 deletions

View File

@ -247,6 +247,11 @@ class SessionPrefs(bpy.types.AddonPreferences):
description='connection timeout before disconnection',
default=5000
)
ping_timeout: bpy.props.IntProperty(
name='ping timeout',
description='check if servers are online',
default=500
)
# Replication update settings
depsgraph_update_rate: bpy.props.FloatProperty(
name='depsgraph update rate (s)',
@ -496,6 +501,9 @@ class SessionPrefs(bpy.types.AddonPreferences):
row = box.row()
row.label(text="Timeout (ms):")
row.prop(self, "connection_timeout", text="")
row = box.row()
row.label(text="Server ping (ms):")
row.prop(self, "ping_timeout", text="")
# REPLICATION
box = grid.box()