GLX Program in a hard loop and using all system resources
Hello, I am writing a program using XLib and GLX (OpenGL) on Linux to draw in the root window. All it is is a slideshow for my desktop. The program launches, grabs the root window, and goes to town... but I have one small problem.
The loop in my main is causing my CPU to be used 100%. This isn't good for a desktop "beautifier"... Is there a way to tell the loop to calm down? Maybe like the Sleep(0) in windows?
|