Skip to content

Commit dd3b3d8

Browse files
Increase polling frequency from 10hz to 30hz
1 parent bc608b2 commit dd3b3d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Here's an example for Old Site Any%:
7979
```
8080

8181
## Events
82-
Events are triggered when SwiftSplit observes a change in the game state, which is checked 10 times every second. A
82+
Events are triggered when SwiftSplit observes a change in the game state, which is checked 30 times every second. A
8383
single state change frequently causes multiple events, generally with differing levels of specificity.
8484

8585
Note that the *exact* text of an event is important. Spaces and capitalization have to match, with a couple additions:

SwiftSplit/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ViewController: NSViewController, RouteBoxDelegate {
5050

5151
self.eventStream = Array(repeating: "", count: eventStreamLength)
5252

53-
timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
53+
timer = Timer.scheduledTimer(withTimeInterval: 1.0/30.0, repeats: true) { _ in
5454
self.update()
5555
self.updateInfoViews()
5656
}

0 commit comments

Comments
 (0)