How do I make a thread run at a certain rate (x times a second ) without bothering the rest of the program? The main-loop runs at about 1000hz and I need to output some of the data to my screen at about 50/60Hz. I don't care whether there are frames lost, as long as the main loop runs correctly. Or shouldn't I use a seperate thread for the screenoutput? Thx