[RESOLVED] High CPU usage when moving lots of units

[RESOLVED] High CPU usage when moving lots of units

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
arturaz
Posts: 8
Joined: 26 Feb 2008, 17:55

[RESOLVED] High CPU usage when moving lots of units

Post by arturaz »

Hello,

I'm having an issue with linux build of spring.

When I have lots (30 or more) units selected and issue a move order my cpu gets up to 100%.

It only happens while drawing movement lines. If I deselect those units or they are not moving, CPU is normal.

I'm using ubuntu 9.10 with spring from ubuntu ppa. When using Windows 7 on same machine, it runs much faster.

My CPU:
model name : Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz
stepping : 6
cpu MHz : 800.000
cache size : 2048 KB

My video:
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)

I enabled UXA and that seemed to help a bit with improving video performance, but movement lines are still choppy.

Any way I can disable them, or have them recalculated less often to speed up the performance?
arturaz
Posts: 8
Joined: 26 Feb 2008, 17:55

Re: [RESOLVED] High CPU usage when moving lots of units

Post by arturaz »

Resolved by installing newest drivers from xorg-edgers PPA: https://launchpad.net/~xorg-edgers/+archive/ppa

Be aware that having this might mess some things up. For example my Starcraft stopped rendering and instead is showing black screen now.

However, because BA > Starcraft, I think it's worth it :))
Last edited by arturaz on 28 Feb 2010, 15:45, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: [RESOLVED] High CPU usage when moving lots of units

Post by Beherith »

Thanks for adding your solution!
arturaz
Posts: 8
Joined: 26 Feb 2008, 17:55

Re: [RESOLVED] High CPU usage when moving lots of units

Post by arturaz »

Hehe, no problems ;)

Now just to wait till monday to kick some workmates asses on Spring! :mrgreen:
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: [RESOLVED] High CPU usage when moving lots of units

Post by hoijui »

sounds like a great place to work at :D
arturaz
Posts: 8
Joined: 26 Feb 2008, 17:55

Re: [RESOLVED] High CPU usage when moving lots of units

Post by arturaz »

Well, game developers need to play some games, don't they? :)

Anyway, this is only kind-of resolved. Upon installing xorg-edgers drivers I started experiencing a lot of X crashes. I'll have to revert back to stable ones.

YMMV I guess.
Post Reply

Return to “Linux”