ok so I the vsync is important, this is just a little test thing I made in a few secs. though I would recommend using while/wend loops. they have less "issues", but as I always say only do it if you are ready or at least want to.. anyways I hope this helps.