+4 votes

Hello everyone !

So I just went across what could be a major problem to me if there is no solution =/ So my question is : Is there any way to change the fullscreen resolution ?

Let's say I have a 2D game that runs in fullscreen with a base resolution of 1080p. Is there any way to detect all available resolutions (to display them in a list on an option menu) ?

And as a result, is it possible to change the effective fullscreen resolution instead of going with the highest resolution ? (yes, some computers sometimes have a hard actually displaying the highest resolution even when the viewport is smaller, that's why games keep giving resolution and rendering resolution options ;) )

I've tried using setwindowsize() et gettree().getroot().set_rect() but both give me the same result, the game gets rendered only on a smaller portion of the screen (corresponding to the difference in resolution), and the rest has a flashing black/godot logo issue...

But even more so, if the engine does not allow for fullscreen resolution change, I would be real sad.

Thanks in advance everyone, have a good day

asked Sep 16, 2016 in Engine by DevilBlackDeath (16 points)

AFAIK, changing resolution is not supported.
Actually, even some of OS not support it like Android.

I think no one cares about changing resolution in Android, but what about Win, Linux, OSX? 90% of Steam games offers possibility of changing resolution to gain performance. If it is not supported it definitively deserve feature request in Github ;).

Definitely my opinion ! And it's as easy as requesting the display modes from the graphic API (which in turn allows the game to know the existence of future, still non existent resolution in the future). Sadly they already said their main audience were mobile developers because they were the majority of Godot users, so I guess I'll keep it for barely more than prototyping =\

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.