Page 1 of 1

100% CPU

Posted: 01 Sep 2004, 01:35
by Shura
this is no real bug report, rather a feature request. well, somewhere in tmw there's loop going that causes 100% cpu all the time. i comfirmed that it's not the gfx or sfx part, so it must be something else. if somebody could find what's causing this and provide a patch i'd be grateful. it's not keeping the game from being playable so...
i would like to do this by myself but we got lots of other important things to do. just look at the TODOS file in the CVS. :roll:

thx! :lol:

Posted: 03 Mar 2005, 19:26
by Pajarico
Hi, i'm having this bug but with every SDL application out there.

-Does any other SDL game burn your CPU?
-Do you have warnings on xorg/X log about the frequency of your monitor? I ask because i'm receiveng those warnings and susppect there is some relation.
-Do you use nvidia/ati drivers?

:wink:

Posted: 03 Mar 2005, 19:51
by imorgado
I have the same problem... answers

1- no
2 - no
3 - nvidia

Posted: 04 Mar 2005, 23:50
by Pajarico
Ok, nice.

-Do you use amd64?
-What distro? Gentoo?
-Try openttd and tell me both of us if it runs ok.

:wink:

Posted: 05 Mar 2005, 06:37
by maci
hmm strange i dun have this bug at all..

Posted: 05 Mar 2005, 10:02
by ElvenProgrammer
Well Shura's post is a bit outdated, I think it was when we were still using allegro

Posted: 05 Mar 2005, 11:11
by Pajarico
Elven Programmer wrote:Well Shura's post is a bit outdated, I think it was when we were still using allegro
I know, but i'm having that problem and seems more sdl related than allegro related. I've played games without allegro or with sound disabled and still having 100% CPU.

Posted: 05 Mar 2005, 15:16
by ElvenProgrammer
Mmmm so I think it will be hard to fix :wink:

Posted: 15 Mar 2005, 19:00
by maci
well i recently talked with Bjorn about that

he said tmw uses 100% because its able to get it


welll i think if you start another application the percantage will go down as long as needed for the other app and after that it goes up again

Posted: 31 May 2005, 22:50
by Bjørn
I've implemented FPS limitting that is configurable through config.xml some time ago, and it will be in 0.0.13 to be released this Sunday. This will free up CPU time, and I hope it will work satisfactory. As of now it won't be enabled by default though, I expect the majority to be fine with the game using all the available power.

Oh another thing fixed is that the game will now practically stop using the CPU while minimized. Should be good news when you like to keep the client active while doing other things.

Posted: 01 Jun 2005, 04:17
by LeoStrife
nice to know Bjorn seeing as how i love posting on this forum, playing the game, doing school work, and much more at the same time so that would most likely let my other programs load better

... man :cry: jus a few more days and ill have to cancel my internet and find a new one doubt ill still be on on sunday to be a tester... if i dont post for awhile ya know what happened lol till then ill use all the time i have left (get my moneys worth from earthlink since they were stupid enough to send 6 months free to a 14 year old :lol: )

Posted: 01 Jun 2005, 09:46
by Peacemaker
if you are using Windows, write a simple batchfile:
Start /BelowNormal tmw.exe
exit
I use that Batchfile about one month and its working great :)

Posted: 01 Jun 2005, 19:23
by Rotonen
I guess one could use nice under *nix to achieve something similar..?

Posted: 02 Jun 2005, 14:24
by Bjørn
Well that won't solve the 100% CPU problem, which was mostly that the CPU got too hot I think. It will give other applications more priority probably.