100% CPU

Ask for help regarding any technical issue or report any bug or OS independent issues.
Locked
User avatar
Shura
Novice
Novice
Posts: 96
Joined: 15 Jun 2004, 01:36

100% CPU

Post 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:
Don't argue with idiots. They drag you down to their level and beat you with experience.
User avatar
Pajarico
Knight
Knight
Posts: 592
Joined: 28 Feb 2005, 19:29
Contact:

Post 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:
imorgado
Novice
Novice
Posts: 62
Joined: 22 Jan 2005, 20:50
Location: Rio de Janeiro - Brazil
Contact:

Post by imorgado »

I have the same problem... answers

1- no
2 - no
3 - nvidia
User avatar
Pajarico
Knight
Knight
Posts: 592
Joined: 28 Feb 2005, 19:29
Contact:

Post by Pajarico »

Ok, nice.

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

:wink:
User avatar
maci
Knight
Knight
Posts: 507
Joined: 05 Dec 2004, 20:01
Location: Germany
Contact:

Post by maci »

hmm strange i dun have this bug at all..
ElvenProgrammer wrote:Maci: don't be rude, we're here to help people ;)
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Well Shura's post is a bit outdated, I think it was when we were still using allegro
User avatar
Pajarico
Knight
Knight
Posts: 592
Joined: 28 Feb 2005, 19:29
Contact:

Post 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.
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Mmmm so I think it will be hard to fix :wink:
User avatar
maci
Knight
Knight
Posts: 507
Joined: 05 Dec 2004, 20:01
Location: Germany
Contact:

Post 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
ElvenProgrammer wrote:Maci: don't be rude, we're here to help people ;)
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post 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.
User avatar
LeoStrife
Peon
Peon
Posts: 31
Joined: 21 May 2005, 10:10
Location: America... bet ya cant find me

Post 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: )
come and visit me peeps at:
http://www.myspace.com/LeoStrife
User avatar
Peacemaker
Novice
Novice
Posts: 96
Joined: 04 Apr 2005, 19:41

Post 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 :)
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Post by Rotonen »

I guess one could use nice under *nix to achieve something similar..?
This message used to be meaningful.
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post 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.
Locked