diff --git a/CHANGELOG.md b/CHANGELOG.md index 169d898..a49a84f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v1.0.3 (2026-05-10) + +### 更改 +- **刷新率从 100ms 提升至 30ms**,速度曲线更新更加丝滑 +- 历史数据点从 600 增至 2000,保持约 60 秒曲线窗口 + ## v1.0.2 (2026-05-09) ### 更改 diff --git a/SettingsWindow.xaml b/SettingsWindow.xaml index 0c6fece..1384b31 100644 --- a/SettingsWindow.xaml +++ b/SettingsWindow.xaml @@ -98,7 +98,7 @@ - diff --git a/ViewModels/MainViewModel.cs b/ViewModels/MainViewModel.cs index 0b0169e..576fa1f 100644 --- a/ViewModels/MainViewModel.cs +++ b/ViewModels/MainViewModel.cs @@ -22,14 +22,14 @@ public class MainViewModel : INotifyPropertyChanged, IDisposable private DateTime _lastNodeFetchTime = DateTime.MinValue; private bool _isPolling; private string? _groupName; - private const int MaxHistoryPoints = 600; + private const int MaxHistoryPoints = 2000; private static readonly TimeSpan NodeFetchInterval = TimeSpan.FromSeconds(3); public MainViewModel() { var config = ConfigService.Load(); _apiService = new ClashApiService(config); - _speedTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(100) }; + _speedTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(30) }; _speedTimer.Tick += OnSpeedTimerTick; }