Skip to content

docs: plan a Raster rendering method next to Path Traced - #289

Merged
yujiaxu-ops merged 4 commits into
mainfrom
docs/rendering-methods
Dec 3, 2026
Merged

yujiaxu-ops merged 4 commits into
mainfrom
docs/rendering-methods

Conversation

@doodlewind

@doodlewind doodlewind commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

A plan, not code: how ThreeRT can grow a second rendering method without becoming two products.

  • One engine, two rendering methods, Godot/Unreal-style. Path Traced is today's renderer. Raster is three.js's own WebGPURenderer running natively: navigator.gpu over wgpu inside the engine's JavaScript guest. Neither is "lite"; the name stays ThreeRT.
  • Layout when it lands:
    • threert-runtime (guest, window, input, audio, net, assets, PocketJS UI host), threert-raster and threert-path (today's renderer).
    • Dependencies point one way: path → runtime ← raster. A Raster build links no path-tracer code.
    • threert build --render raster|path.
    • A CI size gate holds Raster builds small; Path Traced users see no change.
  • Evidence: the Raster runtime already ships Pocket Island's desktop app (pocket-nexus/pocket-agents-island#28). It runs at 35.7% of a core vs Electron's 64.7% and is 10 MB installed / 5 MB to download vs 446 / 170 MB. Its WebGPU binding renders identically to Chrome's on its test scenes.
  • Open questions: a JIT guest on Windows/Linux, TSL coverage for ported materials, and whether @threert/scene should also render through Raster.

Docs only (docs/RENDERING-METHODS.md); the README stays as is until Raster code lands. The document gives the README change for that time.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only edits; no code, build, or runtime behavior changes.

Overview
Updates docs/RENDERING-METHODS.md to reflect current renderer status, not new architecture.

The comparison table’s webgpu column title now says WebGPU rasterization on macOS and Linux instead of the shorter WebGPU — macOS & Linux wording.

In Open questions, the JIT guest item no longer treats Linux as blocked: it states that Linux already uses JavaScriptCore via WebKitGTK, and only Windows still needs a JIT-capable guest for per-frame WebGPURenderer JavaScript work (QuickJS is no longer implied as the Linux path).

Reviewed by Cursor Bugbot for commit 98bad2a. Bugbot is set up for automated code reviews on this repo. Configure here.

yifewind and others added 3 commits November 27, 2026 10:25
One engine, two rendering methods chosen per build: Path Traced (today's
renderer) and Raster (three.js's own WebGPURenderer running natively on
navigator.gpu over wgpu). States the names, the crate layout
(threert-runtime / threert-raster / threert-path, dependencies one way),
the size gate for Raster builds, what moves from pocket-agents-island and
what stays the same for Path Traced users. Plan only; no code moves yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kvnloo

kvnloo commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Small thing before this merges: the PR description and docs/RENDERING-METHODS.md give different figures for the same measurement. The squash commit takes the description, so the mismatch would end up in history.

description doc ("Why a Raster method")
CPU, foreground 35.7 % vs Electron 64.7 % 34.7 % vs 64.8 %
installed 10 MB vs 446 MB 9.9 MB vs 445 MB
download 5 MB vs 170 MB 4.5 MB vs 170 MB

The doc's table row ("10 MB installed, 4.5 MB to download") also rounds one figure and not the other. I can't read apps/desktop/REPORT.md because the repo is private, so I don't know which set is right. The rest checks out against main: the dlss / oidn / net / audio features, the three 0.187 pin, and rquickjs as today's guest.

@yujiaxu-ops
yujiaxu-ops merged commit ea25d2f into main Dec 3, 2026
11 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.

4 participants