今回の記事はディスプレイサーバについです.
Wayland は X に変わる ディスプレイサーバみたいなもので,Sway は Wayland に対応したウィンドウマネージャです.
前々から気になっていた Wayland について調べてみると X と比較してメリットが多そうなことがわかりました.
下の記事によると X では X server と Compositor が別れていたために描画の効率が悪かったが,Wayland ではその2つが統合されたようなアーキテクチャなので描画性能が良いみたいです.
Arch Wiki によると Wayland と GPU ドライバが同一のバッファ API という API に対応している必要があるようです.
Sway は元々 NVIDIA のドライバが使うバッファ API に対応していたようなのですがサポートを止めたようです.
調べてみると作者の1人のブログ記事を見つけました.
So far, I’ve been speaking in terms of Sway supporting Nvidia, but this is an ass-backwards way of thinking. Nvidia needs to support Sway. There are Linux kernel APIs that we (and other Wayland compositors) use to get the job done. Among these are KMS, DRM, and GBM - respectively Kernel Mode Setting, Direct Rendering Manager, and Generic Buffer Management. Every GPU vendor but Nvidia supports these APIs. Intel and AMD support them with mainlined1, open source drivers. For AMD this was notably done by replacing their proprietary driver with a new, open source one, which has been developed in cooperation with the Linux community. As for Intel, they’ve always been friendly to Linux.