Refreshrate

Discussion about the project in general, organization, website, or any other details that aren't directly about the game.
Message
Author
JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

Refreshrate

#1 Post by JohnnyB. »

Greetings,is it possible to adjust the monitor-refreshrate?

Great Project :!:

read you...

Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#2 Post by Tyreth »

In Windows , you can adjust your monitor's refresh rate by going into control panel, display properties, settings, advanced, adapter, list all modes. Then you can select resolution and refresh rate.

A word of warning though - if your monitor is old and doesn't know how to turn itself off, you may damage it. Most monitors I find will just say "Out of Range" or something similar. 75mhz I usually find an acceptable rate.

LCD's the refresh rate doesn't really matter.

JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

#3 Post by JohnnyB. »

I know.. :lol:
In windows and other games i run on 100hz but fo runs only on 60hz.
Some Opengl games have a feature to adjust the refreshrate ingame.
If fo would have such an option the crt-users would be really happy,for sure. 8)

Is this option planned?
Or is there a way to change the refreshrate in the config-file?
Like: app-refreshrate(100) or 1024x768@100,etc.. ?

read you...

JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

#4 Post by JohnnyB. »

anyone... :?:

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

#5 Post by Geoff the Medio »

I don't think there's a GUI or command-line option at the moment. However, I searched the code, and found a line:

SetMaxFPS(60.0);

in HumanClientApp::HumanClientApp(), in HumanClientApp.cpp that looks like it's controlling the FPS. You could try changing that and recompiling, if you're able to do so.

Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#6 Post by Tyreth »

FPS is different to refresh rate.

JohnnyB, are you talking about FPS or refresh rate? There's possibly something in the code that could be changed to use the desktop's refresh rate, but I'd need to take a look.

JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

#7 Post by JohnnyB. »

Just the refreshrate. :wink:

Thanks in advance.

JB

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

#8 Post by Geoff the Medio »

JohnnyB. wrote:Just the refreshrate. :wink:

Thanks in advance.
Uhm... If you mean just the refresh rate, then Tyreth has already answered your question... so... the thanks presumably don't need to be in advance.

More likely, you need to be clearer in what you're actually asking about.

JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

#9 Post by JohnnyB. »

What?
My Desktop-refresh has no effect on Fo.
(running Win-Xp)

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

#10 Post by Geoff the Medio »

JohnnyB. wrote:What?
My Desktop-refresh has no effect on Fo.
Yes, we've established that FreeOrion frame rate ("FPS") is not affected by the computer's screen refresh rate...

So what is your question? Do you want FO to change the computer's refresh rate when it starts? Or do you want the FO frame rate to be equal to the previously-set computer refresh rate when it starts (assuming the rendering can keep up)?

JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

#11 Post by JohnnyB. »

Ok i will picture it. :lol:
Windows(Desktop) running on 1024x768@100Hz
Start DirectX Game->Game has 100Hz
Start OpenGl Game->Game has 60Hz(WinXp Bug)
Some OpenGl games have an option to adjust the refreshrate from 60Hz to "what you want".
Would be great if FO would have this feature,too.
I know that you would do this only for the crt users.
I appreciate that.

JB

Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#12 Post by Tyreth »

I found in this page:
http://www.gamedev.net/community/forums ... _id=393504

"The default fullscreen refresh rate has been increased to match the desktop refresh rate, when using equivalent resolutions. A full API for querying and selecting refresh rates is planned for SDL 1.3."

So it may be a problem with the SDL version used in the windows binary.

JohnnyB.
Krill Swarm
Posts: 10
Joined: Fri Jun 02, 2006 7:55 am

#13 Post by JohnnyB. »

This means...... :?:

:D
JB

noelte
Juggernaut
Posts: 872
Joined: Fri Dec 26, 2003 12:42 pm
Location: Germany, Berlin

#14 Post by noelte »

It's out of our hands.
Press any key to continue or any other key to cancel.
Can COWs fly?

User avatar
utilae
Cosmic Dragon
Posts: 2175
Joined: Fri Jun 27, 2003 12:37 am
Location: Auckland, New Zealand

#15 Post by utilae »

Tyreth wrote:I found in this page:
http://www.gamedev.net/community/forums ... _id=393504

"The default fullscreen refresh rate has been increased to match the desktop refresh rate, when using equivalent resolutions. A full API for querying and selecting refresh rates is planned for SDL 1.3."

So it may be a problem with the SDL version used in the windows binary.
Can't you use non SDL code to select the refreshrate.

Post Reply