Hi, this issue baffles and annoys me quite a bit. The issue is with the block on the right. Here's what its meant to do:
The sprite creates as many clones as inputed through "alonzo count". The clones are then randomly spread along y=-160. The reporter block on the left creates a list of the distances between the clones. All the functions up until now happen instantly, no lags at all. However, the reporter block on the right gives me headaches. It's function is to find the smallest non-zero number in the generated list. The list has positive and negative values, the first item in the list is zero, and there are a few other zeros in the list. The block then reports the position of the smallest number on the list.
As the number of clones increases, the list generated by the first block increases by (nubmer of clones)^2. Each increase in number of clones makes the second block exponentially slower. The warp block doesn't seem to help with this.
I've simplified the block as much as I can and tried moving and adding warp blocks around different segments of the code but nothing seems to work.
I'd really appreciate any suggestions to improve it.
Thanks a lot