Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Commit 2ad4a6f

Browse files
committed
Increased max update-rate
1 parent 4543dcb commit 2ad4a6f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

KeyboardAudioVisualizer/ApplicationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void InitializeDevices()
6161
{
6262
RGBSurface surface = RGBSurface.Instance;
6363

64-
surface.UpdateFrequency = 1.0 / MathHelper.Clamp(Settings.UpdateRate, 1, 40);
64+
surface.UpdateFrequency = 1.0 / MathHelper.Clamp(Settings.UpdateRate, 1, 60);
6565
surface.UpdateMode = UpdateMode.Continuous;
6666

6767
LoadDevices(surface, CorsairDeviceProvider.Instance);

KeyboardAudioVisualizer/UI/ConfigurationViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public double UpdateRate
1818
get => 1.0 / RGBSurface.Instance.UpdateFrequency;
1919
set
2020
{
21-
double val = MathHelper.Clamp(value, 1, 40);
21+
double val = MathHelper.Clamp(value, 1, 60);
2222
ApplicationManager.Instance.Settings.UpdateRate = val;
2323
RGBSurface.Instance.UpdateFrequency = 1.0 / val;
2424
OnPropertyChanged();

KeyboardAudioVisualizer/UI/ConfigurationWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@
185185
<TextBlock Text="{Binding Version}" />
186186

187187
<Label controls:Form.IsLabel="True" Content="Update-Rate" />
188-
<Slider Minimum="1" Maximum="40" controls:Form.Fill="True" IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight"
188+
<Slider Minimum="1" Maximum="60" controls:Form.Fill="True" IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight"
189189
Value="{Binding UpdateRate}"
190190
attached:SliderValue.Unit="FPS"
191-
ToolTip="Defines how fast the data is updated.&#x0a;Low values can reduce CPU-usage but will cause stuttering." />
191+
ToolTip="Defines how fast the data is updated.&#x0a;Low values can reduce CPU-usage but will cause stuttering.&#x0a;Values above 40 will only affect the internal calculations and wont make the keyboard update faster.&#x0a;It's not recommended to select a value > 40." />
192192

193193
<Label controls:Form.IsLabel="True" Content="Fix Volume" />
194194
<CheckBox VerticalAlignment="Center"

0 commit comments

Comments
 (0)