@@ -29,16 +29,6 @@ public PerformanceMetric getFrameDurationReceiveToSent() {
2929 }
3030 private PerformanceMetric frameDurationReceiveToSent ;
3131
32- /**
33- * Duration of a frame cycle originating at
34- * the time when JBWAPI observes a new frame in shared memory.
35- * Uses GetTickCount() instead of System.nanoRime()
36- */
37- public PerformanceMetric getFrameDurationReceiveToSentGTC () {
38- return frameDurationReceiveToSentGTC ;
39- }
40- private PerformanceMetric frameDurationReceiveToSentGTC ;
41-
4232 /**
4333 * Duration of a frame cycle originating at
4434 * the time when JBWAPI observes a new frame in shared memory.
@@ -48,16 +38,6 @@ public PerformanceMetric getFrameDurationReceiveToReceive() {
4838 }
4939 private PerformanceMetric frameDurationReceiveToReceive ;
5040
51- /**
52- * Duration of a frame cycle originating at
53- * the time when JBWAPI observes a new frame in shared memory.
54- * Uses GetTickCount() instead of System.nanoRime()
55- */
56- public PerformanceMetric getFrameDurationReceiveToReceiveGTC () {
57- return frameDurationReceiveToReceiveGTC ;
58- }
59- private PerformanceMetric frameDurationReceiveToReceiveGTC ;
60-
6141 /**
6242 * Time spent copying game data from system pipe shared memory to a frame buffer.
6343 * Applicable only in asynchronous mode.
@@ -188,19 +168,6 @@ public PerformanceMetric getNumberOfEventsTimesDurationReceiveToSent() {
188168 }
189169 PerformanceMetric numberOfEventsTimesDurationReceiveToSent ;
190170
191- /**
192- * The number of events sent by BWAPI each frame,
193- * multiplied by the duration of time spent on that frame (receive-to-sent),
194- * and using GetTickCount() instead of System.nanoTime().
195- * Helps detect use of broken BWAPI 4.4 tournament modules, with respect to:
196- * * - https://github.com/bwapi/bwapi/issues/860
197- * * - https://github.com/davechurchill/StarcraftAITournamentManager/issues/42
198- */
199- public PerformanceMetric getNumberOfEventsTimesDurationReceiveToSentGTC () {
200- return numberOfEventsTimesDurationReceiveToSentGTC ;
201- }
202- PerformanceMetric numberOfEventsTimesDurationReceiveToSentGTC ;
203-
204171 private BWClientConfiguration configuration ;
205172 private ArrayList <PerformanceMetric > performanceMetrics = new ArrayList <>();
206173
@@ -216,9 +183,7 @@ public void reset() {
216183 performanceMetrics .clear ();
217184 frameDurationReceiveToSend = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> before sending 'frame done'" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
218185 frameDurationReceiveToSent = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> after sending 'frame done'" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
219- frameDurationReceiveToSentGTC = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> after sending 'frame done' (Using GetTickCount())" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 ).useGetTickCount ();
220186 frameDurationReceiveToReceive = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> receiving next 'frame ready'" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
221- frameDurationReceiveToReceiveGTC = new PerformanceMetric (this , "Frame duration: After receiving 'frame ready' -> receiving next 'frame ready' (Using GetTickCount())" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 ).useGetTickCount ();
222187 communicationSendToReceive = new PerformanceMetric (this , "BWAPI duration: Before sending 'frame done' -> After receiving 'frame ready'" , 1 , 3 , 5 , 10 , 15 , 20 , 30 );
223188 communicationSendToSent = new PerformanceMetric (this , "BWAPI duration: Before sending 'frame done' -> After sending 'frame done'" , 1 , 3 , 5 , 10 , 15 , 20 , 30 );
224189 communicationListenToReceive = new PerformanceMetric (this , "BWAPI duration: Before listening for 'frame ready' -> After receiving 'frame ready'" , 1 , 3 , 5 , 10 , 15 , 20 , 30 );
@@ -233,7 +198,6 @@ public void reset() {
233198 excessSleep = new PerformanceMetric (this , "Excess duration of client sleep" , 1 , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
234199 numberOfEvents = new PerformanceMetric (this , "Number of events received from BWAPI" , 1 , 2 , 3 , 4 , 5 , 6 , 8 , 10 , 15 , 20 );
235200 numberOfEventsTimesDurationReceiveToSent = new PerformanceMetric (this , "Number of events received from BWAPI, multiplied by the receive-to-sent duration of that frame" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
236- numberOfEventsTimesDurationReceiveToSentGTC = new PerformanceMetric (this , "Number of events received from BWAPI, multiplied by the receive-to-sent duration of that frame (Using GetTickCount())" , 5 , 10 , 15 , 20 , 25 , 30 , 35 , 40 , 45 , 50 , 55 , 85 );
237201 }
238202
239203 void addMetric (PerformanceMetric performanceMetric ) {
0 commit comments