Skip to content

Commit b2c53ea

Browse files
fix: allow setting input lag in game config to up to 1 second instead of just 15 ticks
1 parent 28a34d2 commit b2c53ea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Editor/Config/ElympicsGameConfigEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private VisualElement PrepareInspectorTree(VisualTreeAsset sourceTree)
8484
});
8585

8686
_ = ticksPerSecond.RegisterValueChangedCallback(_ => UpdateTicksPerSecondLabel());
87+
_ = ticksPerSecond.RegisterValueChangedCallback(_ => UpdateInputLagHighValue());
8788
_ = minClientTickRateFactor.RegisterValueChangedCallback(_ => UpdateTicksPerSecondLabel());
8889
_ = maxClientTickRateFactor.RegisterValueChangedCallback(_ => UpdateTicksPerSecondLabel());
8990

@@ -117,6 +118,7 @@ private VisualElement PrepareInspectorTree(VisualTreeAsset sourceTree)
117118
UpdateDebugModeOptions();
118119
UpdateVersionUploadStatus();
119120
UpdateSnapshotReplayOptions();
121+
UpdateInputLagHighValue();
120122

121123
return inspectorTree;
122124

@@ -239,6 +241,8 @@ void SetErrorMessage(string message)
239241
snapshotReplayError.style.display = DisplayStyle.Flex;
240242
}
241243
}
244+
245+
void UpdateInputLagHighValue() => inputLag.highValue = gameConfig.TicksPerSecond;
242246
}
243247
}
244248
}

0 commit comments

Comments
 (0)