From d54176f52ae1218c2e354ab9828a4c8ecec38b86 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 15 May 2013 19:14:52 +0200 Subject: [PATCH] Change default refresh rate to 60Hz This changes the default refresh rate (which KWin uses if it cannot get the rate from the screen) from 50Hz to 60Hz. There are two reasons for this: - When plugging out the last active screen, even without calling xrandr the X server changes the screen geometry to some built-in minimum (320x200), with, of course, no information about the refresh rate. As a result, KWin assumes 50Hz and restarts the compositor to accommodate for this change, only to change it again soon thereafter when there's a screen again. - I know of nobody using a 50Hz screen. Most people use 60Hz, some use 120Hz, but 50Hz seems pretty rare to me. REVIEW: 110454 --- options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.cpp b/options.cpp index 50259474f8..59fceb255f 100644 --- a/options.cpp +++ b/options.cpp @@ -107,7 +107,7 @@ int currentRefreshRate() // 0Hz or less is invalid, so we fallback to a default rate if (rate <= 0) - rate = 50; + rate = 60; // QTimer gives us 1msec (1000Hz) at best, so we ignore anything higher; // however, additional throttling prevents very high rates from taking place anyway else if (rate > 1000)