{
int res = 0;
int startx = tstate.visibleColumn;
- Iterator<Integer> it = tstate.h.getBoundedStartIterator(startx,
- startx+60, true);
+ Iterator<Integer> it = tstate.h.getStartRegionIterator(startx,
+ startx+60);
while (it.hasNext())
{
res = it.next() - startx;
int blockEnd;
int screenY = 0;
Iterator<int[]> it = tstate.h.getBoundedIterator(startx,
- startx+60, true);
+ startx+60);
while (it.hasNext())
{
int[] region = it.next();
}
return blockStart;
}
-
- @Benchmark
- @BenchmarkMode({Mode.Throughput})
- public int benchLoop1(HiddenColsAndStartState tstate)
- {
- int res = 0;
- int startx = tstate.visibleColumn;
- List<Integer> positions = tstate.h.findHiddenRegionPositions(startx, startx+60);
-
- for (int pos : positions)
- {
- res = pos - startx;
- Blackhole.consumeCPU(5);
- }
- return res;
- }
}