Memory consumption

Hi all,
I am using OpenGL with Java(GL4Java). But I have observed that as all my OpenGL applications consume lots of CPU time(while the application is running, the CPU usage is always 100%). Can some body tell me the reason?


When writing OpenGL applications it’s all too easy to just enter a tight rendering loop and spin constantly. Make sure you Thread.yield() occasionally, and relinquish control of the CPU while your application is waiting for a vertical refresh (or however GL4Java works).