are features expensive now?

are features expensive now?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

are features expensive now?

Post by smoth »

I am getting notable fps loss from many features. Would like to know if others are noticing this as well.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: are features expensive now?

Post by Forboding Angel »

No more than usual. I have a few (older, non-ssmf) maps with over 9000 (literally) features on them and those I take a performance hit. But on normal feature range (1k - 5k) I haven't noticed any dip in performance.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: are features expensive now?

Post by Beherith »

I have also noticed this, having high quality shadows and AA on will compound the effect. Forb could you please zoom in on a map (just enough to have the view full of trees) like the new Altored divide or Blindside? The maps use pretty low poly trees, yet cause a disproportionately large FPS drop (altored is nigh unplayable for me).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: are features expensive now?

Post by Forboding Angel »

O_O, no that doesn't happen to me at all. For posterity I'll check again...

Well I'll be damned... there is an fps drop. I'm still getting 70 fps (which is why I didn't notice before) but normally I would have 120 - 200ish. O_o, that's no bueno.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: are features expensive now?

Post by Beherith »

I drop from 100+ to low 20s on altored. Which gpu do you use and do you have shadows/AA on? ( i use 8800gt with 4x AA and 4096 shadows)
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: are features expensive now?

Post by jK »

One problem is the `fading features` feature, it's bad implemented and makes feature rendering ~3x as slow as without it (16% cpu time versus 6-8%) . Also it isn't customizable anymore (iirc it was once) and it uses a fixed distance, so conflicts with fartextures.
But I don't got the time to fix it, I would disable it as a whole, but better ask zerver what to do with it.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: are features expensive now?

Post by FLOZi »

it's ugly as hell, bin it
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: are features expensive now?

Post by Forboding Angel »

I agree with Flozi. At this point it does more harm than good. Also, tbh I really dislike it when I zoom out and features disappear entirely.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: are features expensive now?

Post by Beherith »

Nothing is free. I'm of the opinion that features popping out with zoom (without fade) would be horrible. But the point of the OP is that features, when zoomed in cause a very large FPS drop.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: are features expensive now?

Post by FLOZi »

Just have them change to imposters like units do
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: are features expensive now?

Post by Beherith »

They do change to billboards.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: are features expensive now?

Post by smoth »

billboard looks terrible for many features.

The main thing is that I am running:
16 gb of ram
280 nvidia(next thing that is getting replaced)
3.5ghz octacore(not that it matters)

and still struggle to keep higher than 45 fps with features displayed. If I am having THIS much trouble, I hate to imagine the goobers who are trying to run spring on 4 year old hardware.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: are features expensive now?

Post by zwzsg »

Last time I tried (may 2009) covering the whole map with feature was expensive. I ended up drawing cubes with Spring OpenGL Lua, since anyway I needed them only for visual.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: are features expensive now?

Post by SpliFF »

My own experiments (http://springrts.com/phpbb/viewtopic.php?f=11&t=27938) lead me to believe features have an unusually high impact on the pathfinder. If you look at the debug screen (alt-b) and notice a high CPU usage on movetype::update you may be seeing this as well.

When I disabled the check for feature collisions in the source code the CPU usage dropped by about 80% for the same number of units and features. Note that this appears to be an issue whether your units are actually moving or not and strangely enough it doesn't seem to matter whether you reclaim all the features.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: are features expensive now?

Post by PicassoCT »

Could we replace features on a certain zoom-level with 2 d planes? That way, even shadow could be still calced and stuff like forrests or stones could remain on the map.
Image

Also its not a bug.. its a feature ;)
Attachments
2d is beautifull.jpg
i made this.. in paint.. with no mouse :(
(391.07 KiB) Downloaded 3 times
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: are features expensive now?

Post by AF »

Picasso that already happens, it's what was being referred to when billboarding was mentioned
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: are features expensive now?

Post by Jools »

smoth wrote:I hate to imagine the goobers who are trying to run spring on 4 year old hardware.
I think 4 years is a bad estimate for the mean hardware age. I would think 8 years is closer.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: are features expensive now?

Post by zerver »

Do you have performance issues always with these maps, or only when many features are in view?
PicassoCT wrote:Could we replace features on a certain zoom-level with 2 d planes?
FFS NO :), and the far-textures should be removed as well IMO. It is better to make a fully 2D minimap-like version of Spring instead for ultra-low-end systems.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: are features expensive now?

Post by smoth »

I don't understand your post zerver or what you are suggesting.

Jools:
so the engine should have features, which hurt higher end systems THIS greatly so older computers can run spring? It puts projects like mine in a hard spot. because either you run spring in really low settings OR you have to have a computer MORE powerful than mine? no, anything older than 4 years can gtfo.
Last edited by smoth on 12 Apr 2012, 19:59, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: are features expensive now?

Post by Beherith »

The billboards are a negligible drop. Look at Altored divide remake:

26 fps:
Image


250+ fps:
Image


17 fps!:
Image

FSAA = 1
FSAALevel = 4

ShadowMapSize = 4096
Shadows = 1

On an 8800 GT.
Post Reply

Return to “Engine”