improved fps

improved fps

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

Moderator: Moderators

Post Reply
User avatar
cyclerboy
Posts: 156
Joined: 04 May 2005, 06:38

improved fps

Post by cyclerboy »

im not sure if many people know this but it could help the performance of fps. ta spring by default uses vsync and there is no option(im aware of) to turn it off. before i knew this i got around 40fps with full settings but know with vsync disabled in the video card controls i get around 70 fps with the same settings. im not sure if this is with nvidia cards only or what but it could help slower computers run better and good computers to run even better settings.
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post by Sheekel »

For some, this probably wont work. Im not sure if spring uses it for default or not, but it seems that by going into the graphics card settings and changing the application profile and whatnot for Spring, you can disable vsync and get a big fps boost with little or no graphical anomalies, except when scrolling terrain at high speeds.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

It used to be that old ATI cards could handle vsync being off without problems but nvidia cards required it on... I don't think there's that much of a difference any more. Try it off first and if you get graphical enomalies then turn it back on. Generally speaking you get higher FPS with vsync off.
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post by Sheekel »

I cant seem to find a way to turn it off, perhaps an option in the Spring Settings could be added?
User avatar
cyclerboy
Posts: 156
Joined: 04 May 2005, 06:38

Post by cyclerboy »

i didnt notivce any anomalies with vsynch off and i have an nvidia. maybe it depends on the card, i have a 6800gt
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

WOW, highly improved performance over here with vsync disabled! I've got a Nvidia GeForce FX go5350, and I'm getting around 80 fps now*! I haven't noticed anything weird too, so I'm happy right now.

*that is with shadows disabled, and not looking at reflective water, of course;
User avatar
Dr.InfernO
Posts: 223
Joined: 18 Nov 2005, 13:55

Post by Dr.InfernO »

cool! I also have a 6800GT, so I'll try it when I'm back from work.
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post by Sheekel »

We need an option in the settings!
Flare
Posts: 38
Joined: 13 Feb 2006, 00:11

Post by Flare »

It would be nice to have an antialiasing option and anisotropic option in there too, but it's easy to change the settings with the graphics card so it't not that important.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Full screen antialiasing setting (FSAA and FSAALevel in registry) is already supported by spring itself since 0.70b1. It's just that someone needs to code it into settings.exe. The same applies to DepthBufferBits.

Turning VSync on/off isn't supported by the engine itself, so that takes slightly more work. Also, setting refresh rate isn't supported anymore (and probably won't be unless it's added to SDL), so that should be removed from settngs.exe
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Adding them in is trivial, you'd be surprised how easy it can be, only I aint heading into the settings prog, no time to look through code at the moment....
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

I assume it's quite easy yes if you've got the right tools set up, which I probably haven't. So I'll leave it to someone who has.
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post by Sheekel »

how difficult would it be to add to the settings page? I know my way around C++ okay so i might give it a try
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

You probably want the UI designer (assuming it's been made with that) of MSVC, make a new checkbox, give it the right name, then copy/paste same code of another setting, change the names, compile, test, submit patch.

E: but note that I've never even looked at the code so I'm just guessing here.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

It's as tobi said, only it's simpler than ti sounds
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Post by Sheekel »

I thought it would be more complex than that. How much code is used to implement Vsync? Is it just

Vsync = 1;

haha, i wouldnt have thought so. I figured i would have to link the code between that and the code of the RTSsettings. But then again...ive been using C++ for about 3 months.

:?
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Problem is, you can't set VSync in OpenGL (whereas you can in d3d)
Going into the driver settings is the only way.

EDIT:
There is WGL_EXT_swap_control, so I'll try and use that
Post Reply

Return to “General Discussion”