Wait is 1 tick, and one tick occurs every time StarCraft redraws the screen. So, if you want a smooth animation, change your frame every one or two ticks. The speed of ticks kind of depends on game speed, you can see the ticks are slower when you set the game speed to a slower speed, and faster when you set the game to a faster speed, so try to think less of milliseconds and more of ticks.