Yes, it's running fast because I'm not restricting the speed with the fwait function - it's currently set at 1000 so that I could check the FPS properly - if you change it to 60 it will run more sensibly. And the pixel () function does not slow the program down at all because it's only used once ( before the main program runs). I too have found that if you use it every cycle, you do need to be aware of potential slow downs. Enjoy your evening..... Kevin.
Actually, I just spotted line 57:
col2 = pixel(2,screen_h - 10)
This line is totaly unnecessary, and is left over from some testing I did earlier - if you remove it, or comment it out, it will increase speed marginally.
Actually, I just spotted line 57:
col2 = pixel(2,screen_h - 10)
This line is totaly unnecessary, and is left over from some testing I did earlier - if you remove it, or comment it out, it will increase speed marginally.