Skip to content

Conversation

busyoGG
Copy link

@busyoGG busyoGG commented Oct 16, 2025

Allows the user to force a window to render even when it is offscreen or being captured by a screencast.

This behavior is controlled by the following window rule:

window-rule {
    // match rule
    force-render true    // not needed if the window is being cast
    force-render-fps 60 // if you need fps limit
}
2025-10-16_19-54-04.mp4

@YaLTeR
Copy link
Owner

YaLTeR commented Oct 16, 2025

For screencast it should work out of the box; but why would this be needed outside a screencast?

@busyoGG
Copy link
Author

busyoGG commented Oct 16, 2025

For screencast it should work out of the box; but why would this be needed outside a screencast?

screenshot-2025-10-16_21-41-16

For screen recording, it already works out of the box without any configuration.

Sometimes I run turn-based games with an auto-battle feature on another workspace, and if rendering doesn’t happen, the battle logic can’t complete.

@HigherOrderLogic
Copy link
Contributor

Sometimes I run turn-based games with an auto-battle feature on another workspace, and if rendering doesn’t happen, the battle logic can’t complete.

Iirc Yalter said that clients should expect this and handle it properly instead.

@busyoGG
Copy link
Author

busyoGG commented Oct 16, 2025

Sometimes I run turn-based games with an auto-battle feature on another workspace, and if rendering doesn’t happen, the battle logic can’t complete.

Iirc Yalter said that clients should expect this and handle it properly instead.

Hyprland also offers a similar feature.

I think providing a special solution to address this issue is also acceptable.

If you don’t use it, it’s equivalent to not running this logic.

@YaLTeR
Copy link
Owner

YaLTeR commented Oct 16, 2025

Yeah. That's how it works on GNOME etc

@ykshek
Copy link

ykshek commented Oct 16, 2025

KDE's equivalent would be the window rule
Block Compositing: Force No
image

@busyoGG
Copy link
Author

busyoGG commented Oct 16, 2025

KDE's equivalent would be the window ruleKDE Block Compositing: Force No image

I don’t think it does the same thing.I just tried it and it doesn't force render the game on another workspace.

@ykshek
Copy link

ykshek commented Oct 16, 2025

Nevertheless, in some retro games where game/network logic is bound to its fps, it'd be nice to have this window rule.

@kamikaze211
Copy link

kamikaze211 commented Oct 17, 2025

Oh I really need it lol
I play Honkai Star Rail, it has auto-battle mode, that I can run the game in back ground, but the background window frame limit makes it run very slow, so I have to wait for long time until the battle be completed.
When I use Plasma, there are some ways to resolve it, but I don't know how to do this on Niri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants