[NOT A BUG] CPU usage

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
Aquarius
Peon
Peon
Posts: 1
Joined: 26 Oct 2005, 12:26

[NOT A BUG] CPU usage

Post by Aquarius »

I've been playing tmw for a few days now. I noticed that it uses about 99% of the CPU all the time. Does anyone know why or how to change that? Is this a known issue?
User avatar
Modanung
Grand Knight
Grand Knight
Posts: 1719
Joined: 20 May 2005, 15:51
Location: Groningen, The Netherlands
Contact:

Post by Modanung »

If you minimize it it takes 0%

Do you know any game that doesn't use full CPU power to run?
Maybe we should have a optional fps-limiter though. This would reduce the CPU use to what's necissery, right?
If you're looking for 3D FOSS games be sure to check out LucKey Productions on itch.io
addict420
Peon
Peon
Posts: 5
Joined: 27 Oct 2005, 13:01

Minimize?

Post by addict420 »

I'm also having this issue. It's hard to play when minimized ;)

MS Pinball doesn't use 99% CPU, but it's not as 'animated'.

Can we maybe use an older version of TMW, or will they not work anymore?
Also, will there be any DirectX support?

sorry for any irritation, my first post
User avatar
Modanung
Grand Knight
Grand Knight
Posts: 1719
Joined: 20 May 2005, 15:51
Location: Groningen, The Netherlands
Contact:

Post by Modanung »

Fps-limiter is already there I see... you can configure it in config.xml.
If you're looking for 3D FOSS games be sure to check out LucKey Productions on itch.io
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

When you want the FPS limit to help reduce CPU usage, you have to put it on a value lower than the FPS you normally get. In many cases, a reasonable limit could be 30, though people who normally get hundreds of FPS could put it on 60 or 100.

For the moment you can only change this option in your config.xml. It's called "fpslimit". Putting the value on 0 disables the limit. The supported range is from 10 to 200.
addict420
Peon
Peon
Posts: 5
Joined: 27 Oct 2005, 13:01

FPS limiting

Post by addict420 »

Well, I tried values in config.xml: 1, 10, 100, 65535... no change. I suspect my laptop is too pathetic to really handle this game. Looking in tmw.log is not encouraging; it says things like:

Accelerated software to hardware blits: no (for ALL accel. stuff)
Available video memory: 0 (???)
...and some Unhandled Packet stuff, doubt that's relevant.

I don't even see a FPS counter anywhere.. and (rarely) I see red squares between player and mouse cursor.

Yeah, my laptop is a POS. I'll try it on the desktop in a bit.

Yes, I'm using Windows; and no, I don't like it!
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

Open the debug window (F10), it should show your FPS. If it is already pathetically low than FPS limitting won't help you with reducing CPU usage indeed. TMW supports OpenGL, if you haven't already, check if this gives you better performance.

Red squares are visible when you enable the debug pathfinding feature (Alt + F).
addict420
Peon
Peon
Posts: 5
Joined: 27 Oct 2005, 13:01

60 FPS!!!

Post by addict420 »

Yeah so there's plenty of fps on the desktop, but it still runs at 90+% CPU. It looks a LOT better than the jerky 3fps I was getting on the laptop though! Maybe it's time to install Slackware...
User avatar
Tenche
Warrior
Warrior
Posts: 421
Joined: 14 Jun 2005, 20:21
Location: Reston
Contact:

Post by Tenche »

Or the fix for all your problems (plus it looks better and runs better)

Get a Mac.
User avatar
maci
Knight
Knight
Posts: 507
Joined: 05 Dec 2004, 20:01
Location: Germany
Contact:

Post by maci »

this is not a bug..

tmw just uses your free resources...

if you have other programms running which take like 33% tmw would take 66%

the low fps you had was due to software rendering .. your laptops cpu is not powerful enough to do software rendering. so you get like 3fps.
take a look at the DRI project in order to get hardware acceleraton.

http://dri.freedesktop.org/

then compile tmw with opengl support.
ElvenProgrammer wrote:Maci: don't be rude, we're here to help people ;)
Locked