Surging

hi guys I had a problem with surging a while back and I got a lot of input on it and I was messing around with the vacuum advance I had it in manifold vacuum and I plugged it into portal vacuum and it seems to run better why is that?