View Full Version : Memory consumption

04-15-2003, 03:02 AM
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?


04-15-2003, 05:13 AM
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).