hyprland-wiki/pages/Configuring/Tearing.md

64 lines
1.4 KiB
Markdown
Raw Normal View History

---
weight: 10
title: Tearing
---
2023-09-28 22:58:51 +02:00
Screen tearing is used to reduce latency and/or jitter in games.
## Enabling tearing
To enable tearing:
- Set `general:allow_tearing` to `true`. This is a "master toggle"
- Add an `immediate` windowrule to your game of choice. This makes sure that
Hyprland will tear it.
{{< callout >}}
Please note that tearing will only be in effect when the game is in fullscreen
and the only thing visible on the screen.
{{< /callout >}}
2023-09-28 22:58:51 +02:00
Example snippet:
2023-09-28 22:58:51 +02:00
```env
general {
allow_tearing = true
}
windowrulev2 = immediate, class:^(cs2)$
```
{{< callout type=warning >}}
If you experience graphical issues, you may be out of luck. Tearing support is
experimental.
2023-09-28 22:58:51 +02:00
See the likely culprits below.
{{< /callout >}}
2023-09-28 22:58:51 +02:00
## Common issues
2023-09-28 23:06:29 +02:00
### No tearing at all
Make sure your window rules are matching and you have the master toggle enabled.
2023-09-28 23:06:29 +02:00
Also make sure nothing except for your game is showing on your monitor. No
notifications, overlays, lockscreens, bars, other windows, etc. (on a different
monitor is fine)
2023-09-29 02:19:40 +02:00
2023-09-28 23:06:29 +02:00
### Apps that should tear, freeze
2024-07-19 20:30:43 +02:00
Almost definitely means your GPU driver does not support tearing.
2023-09-28 23:06:29 +02:00
Please _do not_ report issues if this is the culprit.
2023-09-28 22:58:51 +02:00
### Graphical artifacts (random colorful pixels, etc)
2023-09-28 23:06:29 +02:00
Likely issue with your graphics driver.
2023-09-28 22:58:51 +02:00
Please _do not_ report issues if this is the culprit. Unfortunately, it's most
likely your GPU driver's fault.