this post was submitted on 27 Aug 2024
29 points (100.0% liked)

Linux Gaming

15849 readers
2 users here now

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

founded 4 years ago
MODERATORS
 

So both Sway and Hyprland now support Waylands' tearing protocol. I was wondering whether it is possible to create window rules for these WMs that allow tearing in all games launched via Steam. Something like: For Sway for_window [class="steam_app_*"] allow_tearing yes

and for Hyprland windowrulev2 = immediate, class:^(steam_app_*)$

Does anybody know whether something like this would work? You know, instead of having to create an entry for every single game.

Edit: As mranderson17 said, allow tearing isn't in the latest release versions of Sway or Hyprland at the time of writing.

Edit2: mranderson17 gave what could possibly be the right answer:

For Sway for_window [class="steam_app_.*"] allow_tearing yes

For Hyprland (maybe) windowrulev2 = immediate, class:^(steam_app_.*)$

I haven't tested it yet. But unless you think he's wrong give him your "thumbs up".

you are viewing a single comment's thread
view the rest of the comments
[โ€“] GustavoM@lemmy.world 2 points 2 months ago* (last edited 2 months ago) (1 children)

...instead of having to create an entry for every single game.

I think I might be shot and burnt alive in a cross for saying this, but... have you tried adding class="*" instead of restricting it to the steam client only? Oh, and I tried this on my opi zero 3 and it works. The performance boost was really noticeable.

[โ€“] Zenzio@fedia.io 2 points 2 months ago

I think that would enable tearing for all windows no matter what they are as long as they are fullscreen. I'm not sure that would be desirable. Although I lack the knowledge to judge this. So sure, that is an option. I would really like to restrict this to games only, though.