How to know max screen resolution?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sante


I’m searching a way to know max screen resolution of computer running my game. I know it is the OS.get_screen_size() out there, but it answer with actual OS screen resolution, when I like to know the max available screen resolution the system can run…
In other words, I’m running Windows at 1920x1080, but my graphics card can run at 4K: I’d like to know this from Godot, not just my actual screen resolution.
Is there a way to know that?


:bust_in_silhouette: Reply From: Gluon

Bluntly no there isnt. Even the OS doesnt know for sure what will work with all your hardware thats why when you change your resolution they have a timer and revert back to previous settings when you make a selection just in case you have chosen something which doesnt work with your hardware setup.

I suspected it, although I hoped I was wrong. Thank you for your answer in any case: you have removed a doubt from me.

sante | 2023-02-11 14:23