#asahi · 2022-12-08 09:33
marcanpresumably you just queue a flip and the hardware issues it at the earliest possible time, quantized to whatever it can do or whatever#asahi · 2022-12-08 09:33
mpsI built xorg with tearfree patch and enabling it 'Option "TearFree" "on"' then xorg even doesn't start#asahi · 2022-12-08 09:33
ChaosPrincesswhat about stuff like VRR and such?#asahi · 2022-12-08 09:33
marcanthat's how it works on every modern display controller#asahi · 2022-12-08 09:32
marcanthe hardware flips buffers#asahi · 2022-12-08 09:32
ChaosPrincesshow does stuff to know when to flip buffers when there is no vblank interrupt?#asahi · 2022-12-08 09:32
kujegerI've been using wayland/xwayland exclusively for years and it's been just steadily getting better and better#asahi · 2022-12-08 09:32
marcanthey'd have to implement the vblank emulation in xorg proper for this to work somewhat better#asahi · 2022-12-08 09:32
kujegermarcan: with pipewire, the current/soon-ish state of wayland etc it sure looks like 2023 will be a good time for a modern linux desktop, year of the linux desktop jokes aside#asahi · 2022-12-08 09:32
marcanTearFree doesn't change the way xorg implements client vsync (which is apparently based on explicit vblank queries which don't work)#asahi · 2022-12-08 09:31
marcanlina removed the fake IRQ thing because it was broken, right?#asahi · 2022-12-08 09:31
marcan_jannau_: there is no vblank IRQ support so there is no vblank ioctl support so clients just freewheel even when they think they are vsynced#asahi · 2022-12-08 09:31
_jannau_I would expect Xorg with tearfree to be less broken with dcp. It should receive fake vblank irq on framebuffer swaps#asahi · 2022-12-08 09:30
marcanyeah, I'm looking forward to the state of things mid-2023 or so, looks like ~everything is coming together nicely on the desktop side#asahi · 2022-12-08 09:30
kujegerbut I hope it results in a really good experience across DEs#asahi · 2022-12-08 09:29
kujegerfollowing the PR has been a rollercoaster for sure#asahi · 2022-12-08 09:29
marcanbut fractional scaling creates piles of corner cases for interactions, and as far as I know that's why that protocol took so long to work out#asahi · 2022-12-08 09:29
kujegerah, here's the PR for the protocol for anyone interested: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/143#asahi · 2022-12-08 09:28
kujegerah, nice#asahi · 2022-12-08 09:28
marcanQt has natively supported fractional scaling for ages#asahi · 2022-12-08 09:28
marcankujeger: I think KDE has been doing its own thing for a while now#asahi · 2022-12-08 09:27
marcan(because the disadvantage of output scaling is you burn more GPU power by pushing more pixels)#asahi · 2022-12-08 09:27
kujegeriirc the wayland protocol got merged a few days ago, and code using it already exists in unreleased form#asahi · 2022-12-08 09:27
marcantrue native fractional scaling is hard and Wayland will have a leg up on macOS there if it all gets implemented nicely and works#asahi · 2022-12-08 09:27
marcanthough FWIW: as far as I know non-KDE desktops mostly implement fractional scaling via output scaling and... guess what, that's how macOS does it too.#asahi · 2022-12-08 09:27
marcankujeger: it works well in kwin except for some glitching in weird cases. I hope the bikeshedding about how to do the rounding "perfectly" I hear happened trickles down into that and fixes it#asahi · 2022-12-08 09:26
kujegerit'll be interesting when the fractional scaling stuff for wayland lands in released versions of the various compositors, right now non-integer scaling is still kind of blurry in e.g. sway#asahi · 2022-12-08 09:26
marcan*personally* I still have a partial Xorg blocker (inputleap/barrierd support) but that's me, and it looks like progress is being made there plus there's at least a Wayland version of the client anyway#asahi · 2022-12-08 09:25
marcanthose concerns no longer apply; the Xwayland on KWin stuff got fixed and Wayland is a significantly smoother experience than Xorg with drivers#asahi · 2022-12-08 09:25
marcanFWIW, when Asahi first shipped the alpha I chose Xorg because I think it was faster than Wayland without a GPU driver, and because KWin/Xwayland fractional scaling still wasn't working which made Firefox end up blurry, and I didn't have time to chase down these things since the actual "desktop experience" part of everything was quite rushed#asahi · 2022-12-08 09:19
mpsyes, yes, now I don't see any issue #asahi · 2022-12-08 09:19
marcanthe only way it will get reset again is if you start playing really weird games with pacman package versions, it won't happen by accident#asahi · 2022-12-08 09:19
marcanif you don't like it, choose xorg again on the login screen#asahi · 2022-12-08 09:18
marcanthat is a one-time action on package upgrade#asahi · 2022-12-08 09:18
marcanby "force switch" I mean I will edit their SDDM config to switch to wayland, because all existing users on xorg should be switched to wayland, because there is no way to determine intent ("xorg by default" vs "xorg on purpose") and the majority will be of the former category#asahi · 2022-12-08 09:17
marcaneven though the blogpost told people to use wayland#asahi · 2022-12-08 09:17
mpsmarcan: I missread and missunderstood you comment above#asahi · 2022-12-08 09:17
marcanI even shipped an xorg conf with the alpha GPU driver stuff to make xorg actually work (it doesn't work by default because its device selection algorithm is broken by default, see what kettenis said)#asahi · 2022-12-08 09:16
marcanmps: dude I'm literally just talking of changing the default to wayland, I already said that, I'm not sure what you understood#asahi · 2022-12-08 09:16
marcanand that is unlikely to ever be supported because it doesn't look like the hardware does at all#asahi · 2022-12-08 09:16
mpsmarcan: ah, ok, now I understand, you will not intentionally criple xorg usage. sorry for noise#asahi · 2022-12-08 09:16
marcaneven with the TearFree patches you get no vsync on apple machines#asahi · 2022-12-08 09:15
marcanthey are different things#asahi · 2022-12-08 09:15
marcanthat is TearFree#asahi · 2022-12-08 09:15
marcanthat is not vsync#asahi · 2022-12-08 09:15
armarcan: https://gitlab.freedesktop.org/xorg/xserver/-/issues/244#asahi · 2022-12-08 09:15
marcanand other distros have done that ages ago already#asahi · 2022-12-08 09:15
marcanbut we *will* be switching to wayland by default#asahi · 2022-12-08 09:15
marcanagain, people are free to pick their poison#asahi · 2022-12-08 09:15
marcantherefore wayland becomes the better option