How I got the most speed out of spring-How I tripled my FPS

How I got the most speed out of spring-How I tripled my FPS

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

How I got the most speed out of spring-How I tripled my FPS

Post by Beherith »

I used to be content with some decent fps, 45 at start, down to <10 on long games.
My system is a winxp 32bit, core 2 duo cpu, 2gigs of ram, 8800GT gpu.

If you have a multi core CPU, you can gain a lot from this. If you dont, then unfortunately guide cant help you.

First I got the multi threaded build from the downloads page. Direct link to latest at time of posting: http://planetspring.free.fr/spring/exec ... b45722.zip

Now before you install this, launch your favorite mod, and disable FPSManager and LUPSManager widgets.

Then back up your old spring.exe, and replace it with multi threaded version.

Next, you must turn off threaded optimization. If you use Nvidia, you can do this like so:
Image

If you cant select the spring executable in the drop down box of step 1, then press add and browse to spring.exe.

All thats left is to play spring and enjoy the huge performance boost.
I can now patrol 3000 core vamp fighters before my cpu starts to slow down, and even so I get 20 fps when all the fighters are visible, and 80 fps when they are not on screen at 1920*1200 resolution, 4096 shadows, and almost everything else turned to max.

Oddly enough, the healthbars widget, with so many units on screen, eats almost 30% of my fps.

Your results may vary, for some people the MT build doesnt work, but its sure as hell worth a shot!
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Master-Athmos »

Yeah - multiple threads are really going to help the CPU-whore which Spring is (although I'm not up to date what actually did get an own thread). You should mention though that it might not run stable (even with LUPS & stuff deactivated)...

For everyone else I can recommend turning off things like LolUI or those advanced selection highlight widgets which really can cost you 50+% of your fps...
User avatar
DavetheBrave
Posts: 281
Joined: 22 Jun 2005, 02:52

Re: How I got the most speed out of spring-How I tripled my FPS

Post by DavetheBrave »

this is awesome ^_^
User avatar
TheMightyOne
Posts: 492
Joined: 26 Feb 2007, 14:32

Re: How I got the most speed out of spring-How I tripled my FPS

Post by TheMightyOne »

cant find anything remotely similar in my catalyst, help? :(
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Beherith »

If im not mistaken, non sim code got a thread, so thats mostly rendering stuff.

If you dont want it to run on two cores, because your cpu gets too hot (laptops) you can still turn off threaded opt. since it helps loads.

Sorry, I dont know anything about ATI drivers, if someone does, please chime in. The MT build alone without the threaded opt turned off helps too.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: How I got the most speed out of spring-How I tripled my FPS

Post by very_bad_soldier »

Beherith wrote: Now before you install this, launch your favorite mod, and disable FPSManager and LUPSManager widgets.
Sounds nice but this feels like a major drawback. Whats the reason, are they crashing Multithreaded-spring.exe?
I like FPSManager for having at least at the start of the game all gfx-features enabled and having them disabled later ingame automatically. Not being able to use it would mean I would have to disable gfx-features in the first place. :(
Still keen on trying it out...
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Master-Athmos »

TheMightyOne wrote:cant find anything remotely similar in my catalyst, help? :(
There doesn't exist anything similar for ATI. In the end I never understood why NVIDIA would put something about multithreaded code in their driver's options...
very_bad_soldier wrote:Sounds nice but this feels like a major drawback. Whats the reason, are they crashing Multithreaded-spring.exe?
Yeah that's pretty much it. You might find the reason for this in zerver's topic about his changes on Spring - it should have been discussed there for a couple of times and in general LUA seems to have some problems with the MT version...
http://springrts.com/phpbb/viewtopic.ph ... 57&start=0
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: How I got the most speed out of spring-How I tripled my FPS

Post by BrainDamage »

the fps manager works fine with gml, but since it auto adjusts the details to keep fps around 30, you'll never notice any improvement by the fps digit when following his tutorial, you will instead get it indirectly by achieving an higher detail, which is a worse way to check performance than comparing a digit

for normal play the fps manager will do fine
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: How I got the most speed out of spring-How I tripled my FPS

Post by aegis »

hmm... but my fps never drops below 60, windowed with compositing (aero) enabled ;)
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Jazcash »

Ok, I'm getting spammed with stuff about GML every time someone issues a message ingame. Bill Adama thinks it's the Player Info from Ice UI causing this, yet if I disable it, it still continues. However, if I disable Ice UI completely, it stops.

This might be a case for Meltrax to update Ice UI to work with Multithreaded Spring but I want to know if there's anyway I could fix this myself?
User avatar
Apollo
Posts: 168
Joined: 15 Feb 2009, 09:22

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Apollo »

ally rescource bars
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Jazcash »

Apollo wrote:ally rescource bars
That's what Bill told me, I've always had them disabled and always will have. Ice UI's resource bars are what I use.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Forboding Angel »

Then perhaps you should disable ICEui's ally resource bars.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Jazcash »

JAZCASH wrote:yet if I disable it, it still continues.
Forboding Angel wrote:Then perhaps you should disable ICEui's ally resource bars.
Last edited by Jazcash on 01 Jul 2009, 23:35, edited 1 time in total.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Google_Frog »

Thanks this works really well. I had about 60 fps at the start before and now it's over 300. I haven't tried turning my settings up though. There's a little visual mis-match such as unit models overshooting their location when they stop but this only happens when there are a lot of units. Also this causes GML error spam for the Arm Nano Tower effect in CA but the effect is unchanged visually.
User avatar
Apollo
Posts: 168
Joined: 15 Feb 2009, 09:22

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Apollo »

i had same GML error when i tryed ca
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Auswaschbar »

Like BrainDamage already stated:
your performance comparison is borked
You need to compare both builds with FPSManager disabled, as it will set your settings higher if you have much FPS.
With GML, I get about the same FPS, but a 20% higher CPU usage with my core2 duo.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Beherith »

I never used fpsmanager previously, and theres nothing it can add, since i run settings maxed out in both tests. The only difference is the lack of lups aircraft trails.
Want a screenshot of the settings I ran it at? I highly doubt fpsmanager would increase them any more.

The only reason im telling ppl to disable it, is that I got the info that it doesnt work with GML, so im going the safe route.
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Master-Athmos »

Well it's sort of true that the comparison between standard Spring + LUPS against MT Spring + no LUPS isn't that fair. Those aircraft trails eat up your performance like mad - especially when doing tests with like on thousand aircrafts...

With that said the biggest part of your perfomance gain simply comes from disabling the LUPS-effects still the MT version delivers a nice boost...
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: How I got the most speed out of spring-How I tripled my FPS

Post by Beherith »

Enabling lups after the fighters are already spawned is possible, and it doesnt spam error messages.
Tested it with 3k core vamps patrolling over whole dsd, same gfx settings.
When all fighters are in view and fully rendered with trails: 13 fps
When no fighters are on screen: 55 fps
Post Reply

Return to “General Discussion”