Skip to content

Enable Hyprland low-latency display options for fullscreen gaming - #20584

Merged
dhh merged 3 commits into
quattrofrom
gaming-hyprland-display
Nov 28, 2026
Merged

dhh merged 3 commits into
quattrofrom
gaming-hyprland-display

Conversation

@dhh

@dhh dhh commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

What changes

Enable Hyprland's low-latency display options for fullscreen gaming in default/hypr/looknfeel.lua:

  • render.direct_scanout = 1: Bypass compositor rendering for fullscreen windows to cut frame latency. Uses 1 (enable, all fullscreen windows) rather than 2 (auto, content_type = game only) because most native Linux and Proton games do not set the Wayland wp_content_type_v1 game hint, and Omarchy's notification overlay (shell/plugins/notifications/Service.qml) already steps aside for all fullscreen windows specifically to permit direct scanout.
  • misc.vrr = 2: Enable VRR (FreeSync/G-Sync) only in fullscreen (fullscreen mode on Hyprland 0.57.2) so games benefit from adaptive sync without causing desktop refresh-rate flicker. Users can still override this in ~/.config/hypr/monitors.lua.
  • general.allow_tearing = true: Enable the master tearing switch so windows that explicitly opt in via immediate = true can tear for lower input latency, while normal desktop windows stay tear-free.

Verification

  • Verified exact option definitions and enum mappings against Hyprland 0.57.2 via hyprctl descriptions -j (render:direct_scanout 0=disable/1=enable/2=auto, misc:vrr 0=off/1=on/2=fullscreen/3=fullscreen_game, general:allow_tearing bool).
  • Ran bash test/shell.d/hyprland-default-config-test.sh (13/13 ok).
  • Ran bash test/shell.d/config-test.sh (29/29 ok), bash test/shell.d/monitor-scaling-test.sh (34/34 ok), and bash test/shell.d/hyprland-software-rendering-test.sh (14/14 ok).

Screenshots

No visible change: compositor rendering flags (direct scanout, fullscreen VRR, opt-in tearing) only affect frame pacing in fullscreen apps.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Enables lower-latency display options for fullscreen apps.

  • Hyprland scans fullscreen windows straight to the display.
  • Fullscreen apps use variable refresh rate by default.
  • Fullscreen apps can opt in to screen tearing.

No actionable new issues or repository-rule violations were found. No previous findings were supplied.

Reviews (4) · Last reviewed commit: "Note fullscreen VRR default in monitors...." · Reviewed by Greptile

@omarchybot omarchybot added the enhancement New feature or request label Nov 28, 2026
@dhh
dhh merged commit 4f5ff1b into quattro Nov 28, 2026
5 checks passed
@dhh
dhh deleted the gaming-hyprland-display branch November 28, 2026 15:36
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 28, 2026
…acom#20584)

* Enable Hyprland low-latency display options for fullscreen gaming

* Tighten comments on Hyprland display latency defaults

* Note fullscreen VRR default in monitors.lua template
dhh pushed a commit that referenced this pull request Dec 1, 2026
Fullscreen-only VRR (misc.vrr = 2, added in #20584) blanks some VRR-capable displays on every fullscreen toggle across Intel i915 eDP panels and AMD HDMI monitors, and can stall and bounce fullscreen video back out in Chrome with aquamarine atomic DRM EINVAL errors. Setting misc.vrr = 0 explicitly returns Omarchy to VRR off by default while keeping opt-in documented in config/hypr/monitors.lua.

Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com>
Co-authored-by: Opus 5.5 High <noreply@anthropic.com>
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Dec 1, 2026
Fullscreen-only VRR (misc.vrr = 2, added in omacom#20584) blanks some VRR-capable displays on every fullscreen toggle across Intel i915 eDP panels and AMD HDMI monitors, and can stall and bounce fullscreen video back out in Chrome with aquamarine atomic DRM EINVAL errors. Setting misc.vrr = 0 explicitly returns Omarchy to VRR off by default while keeping opt-in documented in config/hypr/monitors.lua.

Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com>
Co-authored-by: Opus 5.5 High <noreply@anthropic.com>
dhh pushed a commit that referenced this pull request Dec 1, 2026
direct_scanout = 1, added by #20584 for fullscreen gaming, makes any solitary fullscreen surface a scanout candidate. Entering scanout switches the output to the client's buffer format and leaving it switches back, and each switch is a full modeset: a black flash every time a fullscreen window stops being scannable, seen on NVIDIA and AMD (#20683). On Apple Silicon the display controller rejects the GPU's tiled client buffers outright, so fullscreen goes black (#21072). Removing the setting returns to Hyprland's default of 0; a user who wants scanout for games can set it in their own config. The VRR and tearing halves of #20584 were already turned off in #21178 and #20932.

Fixes #20683
Fixes #21072

Co-authored-by: omarchybot <317366263+omarchybot@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants