Increased max update-rate

This commit is contained in:
Darth Affe 2018-02-09 23:19:09 +01:00
parent 4543dcb787
commit 2ad4a6f333
3 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ namespace KeyboardAudioVisualizer
{
RGBSurface surface = RGBSurface.Instance;
surface.UpdateFrequency = 1.0 / MathHelper.Clamp(Settings.UpdateRate, 1, 40);
surface.UpdateFrequency = 1.0 / MathHelper.Clamp(Settings.UpdateRate, 1, 60);
surface.UpdateMode = UpdateMode.Continuous;
LoadDevices(surface, CorsairDeviceProvider.Instance);

View File

@ -18,7 +18,7 @@ namespace KeyboardAudioVisualizer.UI
get => 1.0 / RGBSurface.Instance.UpdateFrequency;
set
{
double val = MathHelper.Clamp(value, 1, 40);
double val = MathHelper.Clamp(value, 1, 60);
ApplicationManager.Instance.Settings.UpdateRate = val;
RGBSurface.Instance.UpdateFrequency = 1.0 / val;
OnPropertyChanged();

View File

@ -185,10 +185,10 @@
<TextBlock Text="{Binding Version}" />
<Label controls:Form.IsLabel="True" Content="Update-Rate" />
<Slider Minimum="1" Maximum="40" controls:Form.Fill="True" IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight"
<Slider Minimum="1" Maximum="60" controls:Form.Fill="True" IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight"
Value="{Binding UpdateRate}"
attached:SliderValue.Unit="FPS"
ToolTip="Defines how fast the data is updated.&#x0a;Low values can reduce CPU-usage but will cause stuttering." />
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." />
<Label controls:Form.IsLabel="True" Content="Fix Volume" />
<CheckBox VerticalAlignment="Center"