www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: Juriy on July 05, 2007, 03:20:39 pm
-
I've recently downloaded jPCT and tried to run car demo.
My CPU load jumped to 100% at once. Is this a normal behavior? I've tried running demo at 1.7 GHz notebook, and also 3.6 GHz desktop. Both have Java 6.
Is there a way to limit cpu usage somehow?
-
Yes, it's normal. The demos grab all they can. If you want it different, you would have to make the rendering based on events or insert a sleep in the main loop (which, of course, degrades framerate). It depends on the application. The demos are examples for games. Games usually grab 100% on a single core machine, while an applet or a Swing-app shouldn't... ;)