multithreaded build for linux?

multithreaded build for linux?

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

Moderator: Moderators

Post Reply
User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

multithreaded build for linux?

Post by Wartender »

the title says it all, really, is it going to happen? and if so, when? because i'm planning to build a new computer soon and it's going to have multi-core processors.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: multithreaded build for linux?

Post by Neddie »

I assume, given the advances in the next release, it should be coming in two or three further releases, though I'm not involved in engine development.

I'm looking forward to it too.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: multithreaded build for linux?

Post by Auswaschbar »

I have a multicore processor. Spring uses both cores by default, using the special multithreaded build worsens performance for me.

If you want to try it too, you need to build spring from source.
==Troy==
Posts: 376
Joined: 29 Oct 2008, 15:55

Re: multithreaded build for linux?

Post by ==Troy== »

For me spring gets about 50-70% higher fps on linux compared to win7
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: multithreaded build for linux?

Post by aegis »

you using aero + windowed mode on windows? I haven't seen much difference on the same settings...
User avatar
Wartender
Conflict Terra Developer
Posts: 300
Joined: 17 Jan 2009, 22:37

Re: multithreaded build for linux?

Post by Wartender »

so apparently if i build spring from source it's multithreaded?
cool.
and even if it isn't i suppose i can wait since i'm not getting a new computer for a while xD
Operator
Posts: 4
Joined: 31 Aug 2009, 12:03

Re: multithreaded build for linux?

Post by Operator »

As I know, not just build. You have to configure your build with some cmake flags. Use ccmake . at your spring sources directiory and switch on options "use_gml" and "use_gml_sim". Then compile it. During startup the game, you'll see signature, like "spring 0.80.#-MT (# threads)" on the load screen.
Then about perfomance: on windows (both XP and Vista x64) MT binary gives +70% fps in any game situation with 4-core procesor (my friend's uber-machine), but on Linux (Slackware, x86) it gives me only +6-8 fps maximum with my C2D e8400@4GHz.
And it's only make sense for 0.80.2. Spring 0.80.4 with MT shows the same perfomance, as 80.2, but when I built it without MT-optimization, I'd +25 (!) fps in my tests (under avg. ingame load, i mean). I don't know, what developers made with code, but +40% perfomance only for changing the version - it's a great result.
User avatar
ChaosMonkey
Posts: 180
Joined: 06 Jul 2009, 21:21

Re: multithreaded build for linux?

Post by ChaosMonkey »

multithreaded makes a massive different imo and should be an option in the settings or something
Post Reply

Return to “Linux”