ddnet / ddnet

DDraceNetwork, a free cooperative platformer game
https://ddnet.org
Other
590 stars 417 forks source link

Allow the usage of 70hz in the display resolutions #8138

Closed tomasmfc closed 1 month ago

tomasmfc commented 8 months ago

Would be nice to be able to use my the 70 hz that my monitor has (not that it is much)

archimede67 commented 8 months ago

I'm not sure what you mean. You are talking about a refresh rate, which you can set in the graphics settings:

image

Robyt3 commented 7 months ago

The screen refresh rate shown and selected in the resolution list on the right side is only relevant if you use VSync, which is not recommended if you want lower input delay. If you want to select a value that's not shown in the list you could use gfx_screen_refresh_rate 70 in the local console (F1).

Calinou commented 7 months ago

It appears this option is not a refresh rate setting, but a FPS limiter.

This is exactly like the option in the General tab, which is also a FPS limiter despite being called a refresh rate setting:

image

This is evidenced by you being able to set values that no monitor can actually display natively, and no modesetting occurring when you change values (or when you restart the game).

When you have both limits set, it seems the lowest value is retained.

I suggest renaming both settings from "Refresh Rate" to "Max FPS", and perhaps remove the one in the General tab in favor of the one in the Graphics tab since there's not much point in having two settings that do the same thing.

tomasmfc commented 7 months ago

The screen refresh rate shown and selected in the resolution list on the right side is only relevant if you use VSync, which is not recommended if you want lower input delay. If you want to select a value that's not shown in the list you could use gfx_screen_refresh_rate 70 in the local console (F1).

it resets on client reset. any way to make it persistent?

Robyt3 commented 7 months ago

The screen refresh rate shown and selected in the resolution list on the right side is only relevant if you use VSync, which is not recommended if you want lower input delay. If you want to select a value that's not shown in the list you could use gfx_screen_refresh_rate 70 in the local console (F1).

it resets on client reset. any way to make it persistent?

@tomasmfc Try setting gfx_display_all_video_modes 1 so the resolution list shows all resolutions including not strictly compatible ones. Maybe it's not supported according to your display driver, so it's reset again. As I said above, unless you specifically have to use VSync to avoid tearing, you should not use VSync, so the gfx_screen_refresh_rate setting is meaningless.

Jupeyy commented 1 month ago

Search the internet for how to set custom resolutions for your graphics card, but other than that, there is nothing ddnet can do. We get all supported resolutions from SDL2