Page 1 of 1

[NOT A BUG] CPU usage

Posted: 26 Oct 2005, 12:33
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?

Posted: 27 Oct 2005, 13:07
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?

Minimize?

Posted: 27 Oct 2005, 13:21
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

Posted: 27 Oct 2005, 14:12
by Modanung
Fps-limiter is already there I see... you can configure it in config.xml.

Posted: 27 Oct 2005, 15:40
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.

FPS limiting

Posted: 27 Oct 2005, 17:57
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!

Posted: 27 Oct 2005, 21:04
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).

60 FPS!!!

Posted: 01 Nov 2005, 03:00
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...

Posted: 01 Nov 2005, 03:47
by Tenche
Or the fix for all your problems (plus it looks better and runs better)

Get a Mac.

Posted: 31 Mar 2006, 07:09
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.