Picom Enable Vsync to Fix Screen Tearing
- Enable vsync in picom configuration - Toggle picom on and off with gaming launch & exit script rather than unredir-if-possible setting
This commit is contained in:
@@ -292,7 +292,7 @@ backend = "glx";
|
||||
|
||||
# Enable/disable VSync.
|
||||
# vsync = false
|
||||
vsync = false
|
||||
vsync = true
|
||||
|
||||
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||
# dbus = false
|
||||
@@ -323,7 +323,6 @@ detect-client-opacity = true;
|
||||
# try detecting this with X RandR extension.
|
||||
#
|
||||
# refresh-rate = 60
|
||||
refresh-rate = 0
|
||||
|
||||
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
|
||||
# boost performance. This should not be used with
|
||||
@@ -343,17 +342,17 @@ refresh-rate = 0
|
||||
# to maximize performance for full-screen windows. Known to cause flickering
|
||||
# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious.
|
||||
#
|
||||
# unredir-if-possible = false
|
||||
unredir-if-possible = true;
|
||||
# unredir-if-possible-exclude = [
|
||||
# "class_g = 'looking-glass-client' && !focused"
|
||||
# ]
|
||||
unredir-if-possible = false
|
||||
# unredir-if-possible = true;
|
||||
|
||||
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||
# unredir-if-possible-delay = 0
|
||||
|
||||
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||
# unredir-if-possible-exclude = []
|
||||
# unredir-if-possible-exclude = [
|
||||
# "class_g = 'looking-glass-client' && !focused"
|
||||
# ]
|
||||
|
||||
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||
# in the same group focused at the same time.
|
||||
|
@@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
/home/sravan/.scripts/deadd.sh --unpause
|
||||
/home/sravan/.scripts/picom.sh --on
|
||||
|
@@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
/home/sravan/.scripts/deadd.sh --pause
|
||||
/home/sravan/.scripts/picom.sh --off
|
||||
|
17
README.org
17
README.org
@@ -2542,7 +2542,7 @@ backend = "glx";
|
||||
|
||||
# Enable/disable VSync.
|
||||
# vsync = false
|
||||
vsync = false
|
||||
vsync = true
|
||||
|
||||
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||
# dbus = false
|
||||
@@ -2573,7 +2573,6 @@ detect-client-opacity = true;
|
||||
# try detecting this with X RandR extension.
|
||||
#
|
||||
# refresh-rate = 60
|
||||
refresh-rate = 0
|
||||
|
||||
# Limit picom to repaint at most once every 1 / 'refresh_rate' second to
|
||||
# boost performance. This should not be used with
|
||||
@@ -2593,17 +2592,17 @@ refresh-rate = 0
|
||||
# to maximize performance for full-screen windows. Known to cause flickering
|
||||
# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious.
|
||||
#
|
||||
# unredir-if-possible = false
|
||||
unredir-if-possible = true;
|
||||
# unredir-if-possible-exclude = [
|
||||
# "class_g = 'looking-glass-client' && !focused"
|
||||
# ]
|
||||
unredir-if-possible = false
|
||||
# unredir-if-possible = true;
|
||||
|
||||
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||
# unredir-if-possible-delay = 0
|
||||
|
||||
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||
# unredir-if-possible-exclude = []
|
||||
# unredir-if-possible-exclude = [
|
||||
# "class_g = 'looking-glass-client' && !focused"
|
||||
# ]
|
||||
|
||||
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||
# in the same group focused at the same time.
|
||||
@@ -6933,6 +6932,7 @@ ${font Montserrat Light:size=9}${color1}${top_mem name 10} ${color}${font} ${got
|
||||
#+END_SRC
|
||||
|
||||
* Gaming
|
||||
|
||||
** Gamemode
|
||||
|
||||
*** General
|
||||
@@ -7052,6 +7052,7 @@ inhibit_screensaver=1
|
||||
; Timeout for scripts (seconds). Scripts will be killed if they do not complete within this time.
|
||||
;script_timeout=10
|
||||
#+END_SRC
|
||||
|
||||
** MangoHUD
|
||||
|
||||
#+BEGIN_SRC conf :tangle .config/MangoHud/MangoHud.conf
|
||||
@@ -7850,6 +7851,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam
|
||||
|
||||
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_launch.sh
|
||||
/home/sravan/.scripts/deadd.sh --pause
|
||||
/home/sravan/.scripts/picom.sh --off
|
||||
#+END_SRC
|
||||
|
||||
*** Post-Exit Script
|
||||
@@ -7858,6 +7860,7 @@ These are scripts that should be run from Lutris when launching or exiting a gam
|
||||
|
||||
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/game_exit.sh
|
||||
/home/sravan/.scripts/deadd.sh --unpause
|
||||
/home/sravan/.scripts/picom.sh --on
|
||||
#+END_SRC
|
||||
|
||||
** Control Center
|
||||
|
Reference in New Issue
Block a user