How to Get Supported Fullscreen Resolutions?
Asked Answered
I

3

0

Is there a way to get a list of supported computer resolutions? Previously, I could get an array of supported resolutions in Unreal Engine. I don’t want to enter them manually.

Implosion answered 18/12, 2023 at 5:28 Comment(0)
N
0

Implosion I am not exactly sure that you can. Read the note box under Base Size:

https://docs.godotengine.org/en/latest/tutorials/rendering/multiple_resolutions.html

Nabonidus answered 18/12, 2023 at 11:1 Comment(0)
C
0

Nabonidus Yes, however since the root of the scenetree is a viewport it's resolution can be changed with little issue. At least in theory. It's probably safe to assume that the current resolution of the active/chosen monitor is it's maximum since most users likely set their resolution to the highest available and anything up to that resolution and of the same aspect ratio is likely doable.

Rather than just leaving this side-remark, so as to offer something actually useful to the OP, DisplayServer class might be useful: https://docs.godotengine.org/en/latest/classes/class_displayserver.html

Complacent answered 18/12, 2023 at 14:23 Comment(0)
N
0

Complacent Yes, as far as I understand it Godot will always use the current display resolution and it is up to you to choose whatever resolution you want to use to render your game (for example 1080p or 320x200) and then the engine will just stretch and scale according to some criteria and display it in the window. Maybe upscaled, downscaled or not scaled at all.

Nabonidus answered 18/12, 2023 at 14:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.