99% CPU usage

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
pdunning
Greenhorn
Posts: 9
Joined: 09 Dec 2008, 18:56

99% CPU usage

Post by pdunning »

Warzone has recently been using 99% CPU on my intel core 2 duo 2GHz arch linux box. Even then the game is slow and jerky most of the time (particularly the important bits of the game).
I have version 2.1.2.
Can anyone help?
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: 99% CPU usage

Post by Kamaze »

Already looked at: http://wz2100.net/faq#MyWarzoneisrunnin ... wcanIfixit ?
If it doesn't help, more information would be nice, like the GPU you use.
We all have the same heaven, but not the same horizon.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: 99% CPU usage

Post by stiv »

More info would help. But to get you started:

Are there any other processes running? The 'top' command will help here. Using Shift-P will sort by cpu usage.

Low rent or on-board graphics? A cheap graphics adaptor makes up for its lack of functionality by offloading the work onto the CPU. Newer versions of WZ demand more from the graphics subsystem.
pdunning
Greenhorn
Posts: 9
Joined: 09 Dec 2008, 18:56

Re: 99% CPU usage

Post by pdunning »

I have an Intel GMA 3100, so yeah it's on board but I have had warzone 2.1 running fine before on the system (the sound was slightly crackly but nothing to harm gameplay). I am also running xorg-server 1.6 and mesa 7.3 and so on from the testing repository to improve performance in most 3d programs as the old versions were very slow. no other programs run nearly as slowly.
OpenAL also gives the following warning message when running programs including warzone.

Code: Select all

AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
My full list of graphics stuff installed is:
xorg-server 1.6.0
intel-dri 7.3
xf86-video-intel 2.6.99.902
libgl 7.3
mesa 7.3
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: 99% CPU usage

Post by Buginator »

pdunning wrote:I have an Intel GMA 3100, so yeah it's on board but I have had warzone 2.1 running fine before on the system (the sound was slightly crackly but nothing to harm gameplay). I am also running xorg-server 1.6 and mesa 7.3 and so on from the testing repository to improve performance in most 3d programs as the old versions were very slow. no other programs run nearly as slowly.
OpenAL also gives the following warning message when running programs including warzone.

Code: Select all

AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
AL lib: alcConfig.c:146: config parse error: option without a value: "(define"
My full list of graphics stuff installed is:
xorg-server 1.6.0
intel-dri 7.3
xf86-video-intel 2.6.99.902
libgl 7.3
mesa 7.3
This pretty much means openGL is not being HW accelerated. I blame the crappy gfx drivers.
Try different ones, and hope for the best.
and it ends here.
pdunning
Greenhorn
Posts: 9
Joined: 09 Dec 2008, 18:56

Re: 99% CPU usage

Post by pdunning »

everything else is recieving accelleration (extreme tux racer, supertuxkart, gl-117, neverball, etc) and I have the latest intel drivers. I don't think there are any better graphics drivers.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: 99% CPU usage

Post by Buginator »

pdunning wrote:everything else is recieving accelleration (extreme tux racer, supertuxkart, gl-117, neverball, etc) and I have the latest intel drivers. I don't think there are any better graphics drivers.
The problem is, 1(or more) calls that we use is forcing those drivers to fallback to software mode.
I have no idea how to test, or which call it is. I just know that there are 0 problems on Nvidia & ATI hardware with acceleration issues, assuming they are using the latest drivers for them, and the cards are not too old.
and it ends here.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: 99% CPU usage

Post by stiv »

You may be able to fool with the texture size, screen resolution in WZ or possibly color depth in your X server for better performance.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: 99% CPU usage

Post by Per »

Try reducing texture size, but unfortunately, the intel driver in my experience does not correctly report what parts of OpenGL it supports in hardware, so it could fool the program into using functions that makes it fall back to software mode. No easy way for us to fix this, as far as I know.
pdunning
Greenhorn
Posts: 9
Joined: 09 Dec 2008, 18:56

Re: 99% CPU usage

Post by pdunning »

minimum texture size and minimum practical resolution 640x480 still give the same problems.
Gforce
New user
Posts: 4
Joined: 31 Mar 2009, 06:13

Re: 99% CPU usage

Post by Gforce »

Also try --nosound.
ziftech
New user
Posts: 2
Joined: 03 Mar 2010, 09:20

Re: 99% CPU usage

Post by ziftech »

the same problem on two OS: Win 7 and Linux Mint
Lenovo R61, Core 2 Duo T8100, 2 Gb RAM, Intel 965 express, latests drivers

CPU has 100% load with heat release and system going to shutdown after 10 min of playing
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: 99% CPU usage

Post by stiv »

Time to open the case and vacuum out the dust?
ziftech
New user
Posts: 2
Joined: 03 Mar 2010, 09:20

Re: 99% CPU usage

Post by ziftech »

:) it's clear inside
solved with reducing CPU performance
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: 99% CPU usage

Post by Buginator »

ziftech wrote:the same problem on two OS: Win 7 and Linux Mint
Lenovo R61, Core 2 Duo T8100, 2 Gb RAM, Intel 965 express, latests drivers

CPU has 100% load with heat release and system going to shutdown after 10 min of playing
They really need more airflow in laptops
and it ends here.