Lines Matching refs:idx
41 let idx = -1;
59 idx++;
60 if (idx >= warmupFrames) {
61 idx = -1;
67 if (idx >= 0) {
69 totalFrame[idx] = start - previousFrame;
72 idx++;
78 if (idx >= withFlush.length) {
82 'total_frame_ms': Array.from(totalFrame).slice(0, idx),
84 'with_flush_ms': Array.from(withFlush).slice(0, idx),
87 'without_flush_ms': Array.from(withoutFlush).slice(0, idx),
93 withFlush[idx] = end - start;
94 withoutFlush[idx] = afterDraw - start;
97 console.log(`test aborted due to timeout after ${idx} frames`);
98 reject(`test aborted due to timeout after ${idx} frames`);