Skip to content

feat(webgpu): Omarchy Wayland layer-shell 3D wallpaper host, from doodlewind/ThreeRT-dev#8 - #300

Merged
doodlewind merged 2 commits into
mainfrom
feat/omarchy-wallpaper
Dec 1, 2026
Merged

doodlewind merged 2 commits into
mainfrom
feat/omarchy-wallpaper

Conversation

@doodlewind

Copy link
Copy Markdown
Collaborator

Brings doodlewind#8 upstream, after #298 (the runtime and the webgpu renderer).

What it adds

  • webgpu/wallpaper is a low-power Wayland wlr-layer-shell wallpaper host for Omarchy/Hyprland. It runs three.js WebGPURenderer scenes on threert-jsc + threert-webgpu. It is its own Cargo workspace and Linux only.
  • The demo is a 4K Earth scene. A ThreeRT vs Chromium benchmark report is in webgpu/wallpaper/REPORT.md.
  • Shared code: webgpu/src/gpu.rs adds two fields to GpuOptions, power_preference and memory_hints. Their defaults are what init used before, and every caller in the repo uses GpuOptions::default().

What differs from the fork's commit

  • Assets not committed. The three 4K demo textures and the two report screenshots (~5.5 MB) are left out. README.md (Assets) and REPORT.md link them at the fork PR's head, 195b05e. demo/assets/ is git-ignored, and the demo build warns when it is missing.
  • Machine-specific paths removed. These were a /home/... fallback for HOME and a sibling pocketjs checkout's three. The demo now bundles the repo's own node_modules/three.
  • Lock file fixed. webgpu/wallpaper/Cargo.lock had been made under a local [patch], so --locked failed in a clean checkout. It now names pocketjs's git rev.
  • CI added. The Linux webgpu job runs cargo check --locked in webgpu/wallpaper and installs libwayland-dev for it. Nothing built this crate before.

Checked locally (macOS)

  • bun webgpu/wallpaper/demo/build.mjs bundles the demo (822.6 KiB).
  • cargo metadata --locked resolves for webgpu/wallpaper and for webgpu.
  • The host itself is Wayland only and does not compile on macOS; the new Linux CI step is what checks it. I have not run it on a Linux desktop.

🤖 Generated with Claude Code

doodlewind and others added 2 commits December 1, 2026 18:37
…arth demo, and benchmark report

From doodlewind#8. The demo's 4K textures and the report's screenshots are not committed: they stay in
that PR (README.md, Assets; REPORT.md links them). The demo build warns when demo/assets/ is missing, and the
machine-specific paths (a home directory, a sibling pocketjs checkout's three) are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…resolves pocketjs from git

The wallpaper host (webgpu/wallpaper) is its own workspace and Wayland only, so no job built it: the Linux webgpu job
now runs `cargo check --locked` there (with libwayland-dev). Its Cargo.lock had been made under a local [patch] (no
pocketjs source, three unused patches), so `--locked` failed in a clean checkout; it now names pocketjs's git rev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@doodlewind
doodlewind merged commit 80636a6 into main Dec 1, 2026
10 checks passed
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.

2 participants