Page 1 of 1

[RESOLVED] High CPU usage when moving lots of units

Posted: 27 Feb 2010, 08:02
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?

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

Posted: 28 Feb 2010, 15:38
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 :))

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

Posted: 28 Feb 2010, 15:39
by Beherith
Thanks for adding your solution!

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

Posted: 28 Feb 2010, 15:41
by arturaz
Hehe, no problems ;)

Now just to wait till monday to kick some workmates asses on Spring! :mrgreen:

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

Posted: 28 Feb 2010, 15:55
by hoijui
sounds like a great place to work at :D

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

Posted: 28 Feb 2010, 16:08
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.