Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the _NET_WM_BYPASS_COMPOSITOR hint #872

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Add support for the _NET_WM_BYPASS_COMPOSITOR hint #872

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2013-05-14 13:09:22 +0000, Jasper St. Pierre wrote:

See patch. This should improve performance for Linux games that use SDL2 under WMs that support the hint, like gnome-shell.

On 2013-05-14 13:10:08 +0000, Jasper St. Pierre wrote:

Created attachment 1139
Patch to implement support for _NET_WM_BYPASS_COMPOSITOR

On 2013-05-16 03:38:07 +0000, Sam Lantinga wrote:

It seems like you'd want to only turn this on for fullscreen windows?

On 2013-05-16 09:32:55 +0000, Jasper St. Pierre wrote:

Well, the compositor should make decisions about what it can and cannot support. It's possible a compositor could redirect non-full-screen windows that are stacked to the front while it can.

On 2013-05-16 11:57:06 +0000, wrote:

(In reply to comment # 3)

Well, the compositor should make decisions about what it can and cannot
support. It's possible a compositor could redirect non-full-screen windows
that are stacked to the front while it can.

Yeah I have though about lifting the "must be monitor sized" restriction in mutter but only for windows that explicitly ask for being unredirected using the hint. It might make sense for windowed games but I have not tested it yet how well it works in practice but we might do that in the future.

On 2013-06-22 13:54:09 +0000, Jasper St. Pierre wrote:

Any update on this? Right now we're sort of using a strange hack in mutter / gnome-shell to detect 100 or so full-window damages, but that doesn't play well with some SDL2 games that resize on minimize or similar, where we get the Damage before the ConfigureNotify.

On 2013-07-12 22:15:55 +0000, Ryan C. Gordon wrote:

(Sorry if you get a lot of copies of this email, we're touching dozens of bug reports right now.)

Tagging a bunch of bugs as target-2.0.0, Priority 2.

This means we're in the final stretch for an official SDL 2.0.0 release! These are the bugs we really want to fix before shipping if humanly possible.

That being said, we don't promise to fix them because of this tag, we just want to make sure we don't forget to deal with them before we bless a final 2.0.0 release, and generally be organized about what we're aiming to ship.

Hopefully you'll hear more about this bug soon. If you have more information (including "this got fixed at some point, nevermind"), we would love to have you come add more information to the bug report when you have a moment.

Thanks!
--ryan.

On 2013-07-21 00:27:00 +0000, Ryan C. Gordon wrote:

Just making sure...

    const int _NET_WM_BYPASS_COMPOSITOR_HINT_ON = 1;

Should that be a "long"? I can never remember what XChangeProperty() wants here, and just want to make sure we get it right for both 32 and 64-bit platforms.

--ryan.

On 2013-07-21 00:35:46 +0000, Jasper St. Pierre wrote:

Hm, scanning through GDK, I think we do want "long" here. Can you update the patch? I can't seem to compile SDL at the moment.

On 2013-07-21 01:01:14 +0000, Ryan C. Gordon wrote:

Created attachment 1245
Updated patch.

(In reply to comment # 8)

Hm, scanning through GDK, I think we do want "long" here. Can you update the
patch? I can't seem to compile SDL at the moment.

Attached. I left your name as the author of the patch, I hope you don't mind.

Sam: this seems reasonable to me. Unless you want to add a hint to allow apps to optionally disable it first, I think we should push this patch.

--ryan.

On 2013-07-21 01:05:10 +0000, Jasper St. Pierre wrote:

I think the only case where we want to disable compositor bypass is when the application doesn't sync to vblank, in which case you might get tearing or flickering. Of course, not syncing to vblank introduces a bunch of artifacts anyway, so it's probably not too important to change the property in that case.

On 2013-07-21 01:05:48 +0000, Jasper St. Pierre wrote:

(oh, and I don't mind being credited with the patch, if I have to explicitly give permission)

On 2013-07-21 14:07:20 +0000, Sam Lantinga wrote:

Applied!
http://hg.libsdl.org/SDL/rev/fc864efbc1a6

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

No branches or pull requests

1 participant