You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/bwapi/BWClientConfiguration.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ public class BWClientConfiguration {
32
32
* If JBWAPI detects that this much time (in nanoseconds) has passed since a bot's event handlers began, returns control back to BWAPI.
33
33
* Real-time human play typically uses the "fastest" game speed, which has 42.86ms (42,860ns) between frames.
34
34
*/
35
-
publicintasyncFrameDurationNanos = 40000;
35
+
publicintasyncFrameDurationMs = 40000;
36
36
37
37
/**
38
38
* The maximum number of frames to buffer while waiting on a bot.
@@ -51,16 +51,16 @@ public class BWClientConfiguration {
51
51
52
52
/**
53
53
* Enables collection of diagnostics.
54
-
* When enabled, JBWAPI collects and publishes performance metrics.
54
+
* When timersEnabled, JBWAPI collects and publishes performance metrics.
55
55
*/
56
56
publicbooleandiagnosePerformance = false;
57
57
58
58
/**
59
59
* Checks that the configuration is in a valid state. Throws an IllegalArgumentException if it isn't.
60
60
*/
61
61
publicvoidvalidate() {
62
-
if (async && asyncFrameDurationNanos < 0) {
63
-
thrownewIllegalArgumentException("asyncFrameDurationNanos needs to be a non-negative number (it's how long JBWAPI waits for a bot response before returning control to BWAPI).");
62
+
if (async && asyncFrameDurationMs < 0) {
63
+
thrownewIllegalArgumentException("asyncFrameDurationMs needs to be a non-negative number (it's how long JBWAPI waits for a bot response before returning control to BWAPI).");
64
64
}
65
65
if (async && asyncFrameBufferSize < 1) {
66
66
thrownewIllegalArgumentException("asyncFrameBufferSize needs to be a positive number (There needs to be at least one frame buffer).");
0 commit comments