Author Topic: Refresh rates  (Read 3573 times)

0 Members and 1 Guest are viewing this topic.

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
Is there a way to specify the refresh rate in FS2 open?

If I play on Direct3D then this is not an issue because I am using the global refresh rate override for all DirectX games, but the interface looks all messed up in D3D (low res graphics and chopped up text) in the latest build. It looks fine in OpenGL, but the problem is it sets the refresh rate to 60hz by default there.

Also, many of the resolutions that are in the launcher's resolution list for D3D do not appear in the OGL list for some reason (basically anything above 1600x1200). I can manually set them in the registry and they work fine though. Is this a bug with the launcher?

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Not at the moment.  There will likely be an option added to the laucher soon though.  If for no other reason than to fix a related launcher bug.

As far as the available OpenGL resolutions, those are currently hardcoded.  I can't say that I know why though since the functions which are used to detect resolutions for D3D will also work for OpenGL.  This will likely be fixed at the same time that a refresh rate spinner is added.  At that point fullscreen OpenGL will use whatever refresh rate that you specify.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Windows 2000/XP? This is a known issue that's been around for years. MS partially fixed it in XP but only for DirectX (no surprise there...). There are numerous utilities on the web that'll fix it, I was particularly fond of Reforce before I noticed the ATi drivers have a refresh rate override in their control panels. Check your video drivers, there may already be a way to override it there.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
It is possible to set the refresh rates in the game, but only if you modify the source to let you.  Right now it just uses the default.  The utilities you can find on the net just let you change what the default actually is.  Having the game use a specifed refresh rate is easy, but right now there isn't a user friendly way to set it and sanity check it.  I don't mind going ahead and adding a way to use a particular refresh rate with a registry setting but if you fry your monitor or video card then don't come crying back here.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
You shouldn't have to hack FS to fix this, the best solution is to attack the root of the problem and fix the brain-damage within Windows itself, whether by using a 3rd party utility or the tools built-in to your video card drivers. This also has the advantage of working in other OGL games besides FSO.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
It's not a hack, we just don't set it.  We just have to add one line and a bit flag to make it use a specific refresh rate of our choosing.  Since we don't set it, Windows has to use something and will therefore use the default rate.  The only real brain-damage is that Windows keeps such a low refresh rate.  For DirectX, when fullscreen, it should use the current desktop refresh rate (I think) if possible unless you tell it otherwise.

For other OGL games (not including idSoftware stuff) it would be helpful to have the 3rd party utility.  But that utility won't mean crap for this game when we actually fix FSO to do this right since it would ignore whatever you set using the utility.  Windows is stupid for not handling fullscreen refresh rates the same in OGL as it does in D3D but the real issue here is that we aren't doing what we're supposed to in order to handle this properly.  I'm all for blaming Microsoft for everything but this is deffinitely one case where we just don't do things right.

 

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Under XP, DirectX does use the desktop refresh rate whereas OpenGL still uses the 60Hz default. In other words, MS saw fit to fix their own API but completely ignore a competing one. If MS had simply done the job properly in the first place then you wouldn't require any code modifications at all. However, the point is moreorless moot since the drivers for both the major video card families have facilities to fix the problem.
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 

Offline CP5670

  • Dr. Evil
  • Global Moderator
  • 212
So a setting for this will be added in soon?

Quote
Windows 2000/XP? This is a known issue that's been around for years. MS partially fixed it in XP but only for DirectX (no surprise there...). There are numerous utilities on the web that'll fix it, I was particularly fond of Reforce before I noticed the ATi drivers have a refresh rate override in their control panels. Check your video drivers, there may already be a way to override it there.


I haven't managed to find any utility that does exactly what I want with the refresh rates. The problem with things like RefreshForce are that they only allow one refresh rate setting per resolution. I have my desktop at 1280x960 at 85hz since the text looks very slightly sharper at that refresh rate, but want to play games at 120hz at this resolution. The refresh rate controls in the nvidia control panel have the same problem.

In my experience, it doesn't quite work in DirectX either. By default, it just sets everything to 75hz in my case even though I have my monitor's inf file installed. The way I currently have it working is through the refresh rate override setting in dxdiag, which is stored as a registry flag. This only allows you to set one refresh rate, which is used for all resolutions, but I sort of got around this by making several reg files that change this setting around. Before starting a game, I load the appropriate file to lock it to the correct refresh rate for whatever resolution the game runs in. A little cumbersome, but it has the advantage of not interfering with the Windows refresh rate and works on any fullscreen DX stuff.

I ran into this problem with a few other OGL games, but they all run on Doom 3 or Quake 3 engines and have console options to set the refresh rate.

Quote
As far as the available OpenGL resolutions, those are currently hardcoded. I can't say that I know why though since the functions which are used to detect resolutions for D3D will also work for OpenGL. This will likely be fixed at the same time that a refresh rate spinner is added. At that point fullscreen OpenGL will use whatever refresh rate that you specify.


It seems to be a detection issue only. I changed the registry flag VideocardFs2open to "OGL -(2048x1536)x32 bit" and it worked fine apart from being stuck at 60hz. It might be a good idea to just allow the user to type in any custom resolution; most modern games let you do that in some way.
« Last Edit: July 25, 2005, 03:46:16 am by 296 »

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Quote
Originally posted by CP5670
So a setting for this will be added in soon?

Yeah, when I get the time (hopefully this week).  RT hasn't been around and there is at least one Launcher bug (the registry tab, long cmdline thing) that's been fixed since the last release.  I want 3.6.7 to have a Launcher with that fix.  There is one bug relating to multple 640x480 resolution entries being listed and adding a refresh rate control is a good way to clear that problem up.

Quote
It seems to be a detection issue only. I changed the registry flag VideocardFs2open to "OGL -(2048x1536)x32 bit" and it worked fine apart from being stuck at 60hz. It might be a good idea to just allow the user to type in any custom resolution; most modern games let you do that in some way.

You're right, it's just a detection problem.  Or rather a non-detection problem since it doesn't actually "detect" anything.  I'm going to at least update the resolution list to work like the D3D one does and give you a list of all supported resolutions.

 
Is there any changes? Does it possible to specify refresh rate now?
In Babylon 4 there is ogl_rate frag, but it doesn't work in TBP.

EDIT: OK I've picked the oldest thread :)
« Last Edit: December 15, 2009, 03:33:13 am by Niroborn »

  

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
...

Start a new thread if you have questions.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []