Thanks,glad you like it.
I used a very strange curve to calculate the spawn time. 1/((1+exp(x/10)/100)^0.5), I think it may also be a reason causing lag...