Skip to content

Commit

Permalink
Merge pull request godotengine#83902 from Biokastin/master
Browse files Browse the repository at this point in the history
Improve X11 `screen_get_refresh_rate` performance
  • Loading branch information
akien-mga committed Oct 25, 2023
2 parents 3f9af43 + 085255b commit 06d5189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/linuxbsd/x11/display_server_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ float DisplayServerX11::screen_get_refresh_rate(int p_screen) const {

//Use xrandr to get screen refresh rate.
if (xrandr_ext_ok) {
XRRScreenResources *screen_info = XRRGetScreenResources(x11_display, windows[MAIN_WINDOW_ID].x11_window);
XRRScreenResources *screen_info = XRRGetScreenResourcesCurrent(x11_display, windows[MAIN_WINDOW_ID].x11_window);
if (screen_info) {
RRMode current_mode = 0;
xrr_monitor_info *monitors = nullptr;
Expand Down

0 comments on commit 06d5189

Please sign in to comment.