Graphical Performance & Spring

Graphical Performance & Spring

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
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Graphical Performance & Spring

Post by Neddie »

As the developers add more (Quite good, in sober fact) features and engine functionality, not to mention LUA, Spring has been advancing rapidly. However, I get almost the same FPS on mid-low settings on a 7600 Go with all the requisite drivers and settings these days as I did on an unoptimized GeForce 4 a year ago.

I can only conclude that either Spring is not taking advantage of the power of advancing graphics cards or is unable to generate graphical elements efficiently.

Now, as I am not a coder and cannot easily discover what is happening in the engine for myself, I wanted to open discussion about this and possibly ask what in the engine can be optimized or updated to increase performance and decrease resource drain.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Using vertex buffer objects instead of display lists may help.

The current usage of vertex arrays is a bit silly in Spring, that could be better (streaming/dynamic VBOs maybe?).
User avatar
Stealth870
Posts: 166
Joined: 13 Sep 2004, 00:25

Post by Stealth870 »

This is indeed true. If I alt-tab (or have a window minimize my Spring) once I get back in, it's so sluggish I normally have to restart my game. That's with a 2.4 Core 2 and 8800GTS. I can run Supcom on high, 1680x1050 and AA all over the place with no hiccups, and I can alt-tab pretty quick too! ;) Spring definitely needs some optimizations.
Masure
Posts: 581
Joined: 30 Jan 2007, 15:23

Post by Masure »

Stealth870 wrote:This is indeed true. If I alt-tab (or have a window minimize my Spring) once I get back in, it's so sluggish I normally have to restart my game. That's with a 2.4 Core 2 and 8800GTS. I can run Supcom on high, 1680x1050 and AA all over the place with no hiccups, and I can alt-tab pretty quick too! ;) Spring definitely needs some optimizations.
I don't get the link with the topic and your "alt tab" troubles.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Post by jK »

Tobi wrote:Using vertex buffer objects instead of display lists may help.

The current usage of vertex arrays is a bit silly in Spring, that could be better (streaming/dynamic VBOs maybe?).
VBOs are mostly slower than DLs, so there is no need to replace them.
see here:
http://www.sci.utah.edu/~bavoil/opengl/vbo/batching/
http://www.sci.utah.edu/~bavoil/opengl/vbo/data_types/

Only VBAs are really slow, in that case VBOs would be a lot (4-10x) faster.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

The pages talk about DLs generated using VBAs. I wonder if that makes a difference compared to DLs generated using glBeging/glVertex/glEnd. (I'm not even sure what Spring does though.)

Even then, by making projectiles use a dynamic/streaming VBO instead of a VBA it should be possible to speed stuff up.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

I wholeheartedly agree..

I am making 90 FPS or so idling, but still... Spring could use some moar efficient coding.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Does any dev have nvidia 8 series hardware? It seems these cards are being hit pretty hard for some reason.
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Post by Betalord »

jK wrote:VBOs are mostly slower than DLs, so there is no need to replace them.
VBOs are faster from my experiences. I was doing some fps game for a school project and did play a lot with renderer, first doing everything in immediate mode, then DL and then VA and VBOs. The fastest was using VBOs (using index arrays and streaming separate color/normal/vertex buffers on the fly), but it might be just a radeon thing (using radeon 9k) - I've read somewhere that some radeon drivers simply translate DLs into VBOs anyway.
For dynamic geometry, VBOs are the only way.
User avatar
Stealth870
Posts: 166
Joined: 13 Sep 2004, 00:25

Post by Stealth870 »

Masure wrote:
Stealth870 wrote:This is indeed true. If I alt-tab (or have a window minimize my Spring) once I get back in, it's so sluggish I normally have to restart my game. That's with a 2.4 Core 2 and 8800GTS. I can run Supcom on high, 1680x1050 and AA all over the place with no hiccups, and I can alt-tab pretty quick too! ;) Spring definitely needs some optimizations.
I don't get the link with the topic and your "alt tab" troubles.
My point was I can run a highly-intensive game and alt-tab in and out without problems. In Spring this is not so. Perhaps its a completely separate bug, but since we are talking about performance, I've noticed that Spring is really bad after an alt-tab. My guess is that when doing an alt-tab, something happens with the 3D calls by Spring that causes it to slowdown. As if it can't properly re-initiate the rendering or something, perhaps due to (as the thread states) the lack of optimizations.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

This is another valid issue and should be considered in the same bundle.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

It isn't exactly a rare issue with games, really...Oblivion freezes when I alttab back to it when it runs in fullscreen mode. Bioshock sticks for a good 2 minutes. Other games sometimes start mixing textures around in the vram- a wall becomes a player texture, a gun gets a wall texture, etc. Not saying it's a non-issue, but it might be a graphics driver problem or something.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Peet wrote:It isn't exactly a rare issue with games, really...Oblivion freezes when I alttab back to it when it runs in fullscreen mode. Bioshock sticks for a good 2 minutes. Other games sometimes start mixing textures around in the vram- a wall becomes a player texture, a gun gets a wall texture, etc. Not saying it's a non-issue, but it might be a graphics driver problem or something.
This does seem to happen in Neverwinter Nights 2...
MetalSkin
Posts: 77
Joined: 31 Aug 2007, 02:42

Post by MetalSkin »

Stealth870 wrote:My point was I can run a highly-intensive game and alt-tab in and out without problems. In Spring this is not so.
Hmm I have no problems alt tabbing in spring what so ever, works every time. On my older XP box, I used to have some problems, occasionaly if I didn't alt tab back fast enough it would quit me out of the game?!?! But my new box is fine (running Vista 64). However I do note that my FPS majorly sucks. now my graphics cards are:
2 x Inno3D (PCI Express) GF 8800GTX Overclocked 768MB 384-bit DDR3, HDTV, Dual DVI, PCI Express X16 interface, 590MHz Core Clock, 1900MHz Memory Clock
Very nice cards running duel sli. I run BF2 at a very high res and it has a brillant frame rate. in spring, lucky if I get above 40fps... average around mid 30's. Sometimes it drops depending on what is happening and can drop as low as the 10's.

I think part of my problem is that I have a 30" monitor and as such run Spring at it's highest res. but even with fiddling with the settings (turning off a lot of stuff or reducing it down) I still get what I would consider is a low FPS for my system. Never really understood why.
Masure
Posts: 581
Joined: 30 Jan 2007, 15:23

Post by Masure »

I have not those bugs while alt tabbing. The only true alt tabbing bug in Spring I have is the following :

When you alt tab to windows and try to focus back spring through task bar it often does nothing than moving your mouse up a corner without focusing spring. Sometimes 3 attempts are needed to go back in spring fullscreen.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Spring doesn't preform any different in FPS today as it did when I started playing with my radeon 9800 pro... FunTa using massive hoards of attack effects can cause some slow down, but I suspect the same would be true back in the day, there was just no mod to test this with.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

MetalSkin wrote:
Stealth870 wrote:My point was I can run a highly-intensive game and alt-tab in and out without problems. In Spring this is not so.
Hmm I have no problems alt tabbing in spring what so ever, works every time. On my older XP box, I used to have some problems, occasionaly if I didn't alt tab back fast enough it would quit me out of the game?!?! But my new box is fine (running Vista 64). However I do note that my FPS majorly sucks. now my graphics cards are:
2 x Inno3D (PCI Express) GF 8800GTX Overclocked 768MB 384-bit DDR3, HDTV, Dual DVI, PCI Express X16 interface, 590MHz Core Clock, 1900MHz Memory Clock
Very nice cards running duel sli. I run BF2 at a very high res and it has a brillant frame rate. in spring, lucky if I get above 40fps... average around mid 30's. Sometimes it drops depending on what is happening and can drop as low as the 10's.

I think part of my problem is that I have a 30" monitor and as such run Spring at it's highest res. but even with fiddling with the settings (turning off a lot of stuff or reducing it down) I still get what I would consider is a low FPS for my system. Never really understood why.
CuPCaKe has the same setup and same problem.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Anyway, I'll join the testing rotation, but we need solutions. Spring is, as evidenced by how it performs, not efficiently handled in important ways.
DemO
Posts: 541
Joined: 18 Jul 2006, 02:05

Post by DemO »

I've finished building my new rig. Spec is in the Off topic forum in a thread I made about it.

Needless to say, on my 8800 GTX and quad core Q6600 I'm getting an astonishing average of.....8 fps.

Regardless of what settings I have changed, it is the same. Is there something I've missed or something I can do to make it work better?

Anyways, pretty dismal performance. Other games are all running on ,my monitors aspect resolution (1680x1050) with all settings on full and 8x AA at anything from 90-200 fps constant.

On a side note, seems I got an awesome q6600 chip or I'm just insanely good at installing heatsink with thermal paste etc because my chip idles at 26 degrees with all fans (including heatsink fan) on low and on full load only reaches 33 degrees. Looks like this one will be a bit of a beast for OC'ing :D
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

Core2 is actually pretty good in the power consumption department. In the high-end world, it's the RAM that hurts - FB-DIMMs work like little ovens.
Post Reply

Return to “Engine”