Originally Posted By: Walori
thank you for the answers.

About the total_frames%80, let's say I want to call printf every 5th second, do I only put it like below, I've not got accurate measurements to verify this
Code:
while(1)
{
if((total_frames%80) == 5)
printf("Hello world");
wait(1);
}




Hiya,

This is not what you want...

If you want it every 5th _SECOND_ put a wait(-1) cause this is a second, and frames change...

And, not %80, %5 and check if it is 0
-> if((total_ticks/16)%5 == 0)