Main Menu

CPU load

Started by Juriy, July 05, 2007, 03:20:39 PM

Previous topic - Next topic

Juriy

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?

EgonOlsen

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... ;)