Skip to content

Commit

Permalink
reduce ControllerManager scenario check to 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Oct 27, 2024
1 parent c784f67 commit aa101b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions HandheldCompanion/Managers/ControllerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static class ControllerManager
private static object targetLock = new object();
public static ControllerManagerStatus managerStatus = ControllerManagerStatus.Pending;

private static Timer scenarioTimer = new(1000) { AutoReset = true };
private static Timer scenarioTimer = new(100) { AutoReset = false };

public static bool IsInitialized;

Expand Down Expand Up @@ -277,7 +277,6 @@ private static void ScenarioTimer_Elapsed(object? sender, ElapsedEventArgs e)
}
}


// either main window or quicktools are focused
if (focusedWindows != FocusedWindow.None)
ControllerMuted = true;
Expand Down

0 comments on commit aa101b5

Please sign in to comment.