Author Topic: CPU load  (Read 3422 times)

Offline Juriy

  • byte
  • *
  • Posts: 2
    • View Profile
CPU load
« 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: CPU load
« Reply #1 on: July 05, 2007, 03:55:02 pm »
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... ;)