Original Post
Hi all, I need a bit of advice; really simple question - for a program (*NOT* a game) that runs constantly:
int main() {
bool done = false;
while(!done) {
//do stuff
}
return 0;
}
What is the best way to manage it's CPU usage? If I wanted to run a roughly *frame* a second, would Sleep(1000-x) (where x is the time in ms taken to process that frame) would that be sufficient for a high performace app? Thanks in advance.