@usemosio/cli-win32-x64 1.0.0-next.5 → 1.0.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/bin/mosio.exe CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usemosio/cli-win32-x64",
3
- "version": "1.0.0-next.5",
3
+ "version": "1.0.0-next.6",
4
4
  "license": "MIT OR Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -81,7 +81,10 @@ if [ "$rc" = 130 ] && [ "$code" = E_CANCELLED ] && [ "$left" = 0 ] && [ "$tmp" =
81
81
  echo " H5: rc=$rc code=$code exit_ms=$exit_ms all_children_gone_ms=$gone_ms temp_dirs=$tmp partial_output=$([ -e $W/out/w1-term.mp4 ] && echo YES || echo no)"
82
82
 
83
83
  # H6: SIGKILL: children must not outlive mosio; the next run removes the stale temp dirs (one worker, as H5)
84
- u "cd $W && { mosio render w1 --no-cache --workers 1 -o out/w1-kill.mp4 > /dev/null 2>&1 & pid=\$!; sleep 3; kill -KILL \$pid; wait \$pid 2>/dev/null; true; }"
84
+ # Kill after the first progress event on the 20 s copy (as H5): a fixed sleep let a fast render finish before the kill
85
+ u "cd $W && { mosio render w1long --no-cache --workers 1 --progress jsonl -o out/w1-kill.mp4 > /dev/null 2> h6.jsonl & pid=\$!;
86
+ for t in \$(seq 1 1200); do grep -q '\"progress\"' h6.jsonl 2>/dev/null && break; sleep 0.05; done;
87
+ kill -KILL \$pid; wait \$pid 2>/dev/null; true; }"
85
88
  t0=$(now); wait_procs_gone; t1=$(now); left=$(procs); stale=$(temps)
86
89
  u "cd $W && mosio render w4 --workers 1 -o out/w4-after.mp4 > h6-next.json 2>&1"
87
90
  after=$(temps)
@@ -0,0 +1,270 @@
1
+ #!/usr/bin/env bash
2
+ # Publish matrix: every render ends with an MP4 and records the capture it used.
3
+ #
4
+ # scripts/publish-matrix.sh MOSIO FONTS_DIR OUT_DIR (FONTS_DIR: Inter-ExtraBold.otf and Inter-Medium.otf, as for
5
+ # scripts/platform-smoke.sh)
6
+ #
7
+ # Builds two small projects (run from the repository root): `pure` (two canvas 2D scenes) and `hybrid` (the same
8
+ # scenes, an audio track and captions), then renders each with --capture png and canvas, -o relative (run from the
9
+ # project) and absolute, with and without --no-cache, plus two renders from a very deep folder (the output's
10
+ # frames.json past Windows' 259-character limit: the staged-name bug of next.5). Every render must exit 0 and leave
11
+ # the MP4 and its frames.json, no staged leftovers, and `execution.capture.scenes` must say canvas | png |
12
+ # fallback:<why> per scene. Also: `mosio check` warns W_CAPTURE_CANVAS_FALLBACK for the hybrid project, and the
13
+ # hybrid audio preflight never reports u64::MAX as available memory. Runs on Linux and in Git Bash on Windows.
14
+ set -euo pipefail
15
+
16
+ MOSIO=$1
17
+ FONTS=$(cd "$2" && pwd)
18
+ OUT=$3
19
+ mkdir -p "$OUT"
20
+ OUT=$(cd "$OUT" && pwd)
21
+ MOSIO=$(cd "$(dirname "$MOSIO")" && pwd)/$(basename "$MOSIO")
22
+ PY=python3
23
+ if ! python3 -c 1 2>/dev/null; then PY=python; fi
24
+ # a native path for the binary's arguments (Git Bash passes /c/... through, the owner types C:\...)
25
+ native() { if command -v cygpath >/dev/null; then cygpath -m "$1"; else printf '%s' "$1"; fi; }
26
+
27
+ make_project() { # DIR KIND
28
+ local d=$1 kind=$2
29
+ mkdir -p "$d/scenes" "$d/audio" "$d/assets/fonts"
30
+ for s in a b; do
31
+ cat > "$d/scenes/$s.html" <<EOF
32
+ <!doctype html><html><head><meta charset="utf-8"><style>* { margin: 0; padding: 0; } html, body { width: 360px; height: 640px; overflow: hidden; background: #101820; }</style></head>
33
+ <body><canvas width="360" height="640" data-mosio-id="$s/canvas"></canvas>
34
+ <script>
35
+ const c = document.querySelector("canvas").getContext("2d");
36
+ __mosio.onSeek((t, f) => {
37
+ c.fillStyle = "#101820"; c.fillRect(0, 0, 360, 640);
38
+ c.fillStyle = "hsl(" + ((f * 9 + ("$s" === "a" ? 0 : 180)) % 360) + " 80% 55%)"; c.fillRect((f * 5) % 300, 200 + (f % 30) * 4, 60, 60);
39
+ c.fillStyle = "#ffffff"; c.fillRect(0, 620, Math.round((f / 29) * 360), 20);
40
+ });
41
+ </script></body></html>
42
+ EOF
43
+ done
44
+ if [ "$kind" = hybrid ]; then
45
+ "$PY" - "$d/audio/tone.wav" <<'PY'
46
+ import math, struct, sys, wave
47
+ w = wave.open(sys.argv[1], "wb"); w.setnchannels(2); w.setsampwidth(2); w.setframerate(48000)
48
+ w.writeframes(b"".join(struct.pack("<hh", v, v) for v in (int(8000 * math.sin(2 * math.pi * 440 * i / 48000)) for i in range(48000 * 2))))
49
+ w.close()
50
+ PY
51
+ cp "$FONTS/Inter-ExtraBold.otf" "$FONTS/Inter-Medium.otf" "$d/assets/fonts/"
52
+ printf '1\n00:00:00,100 --> 00:00:00,900\nPublish first\n\n2\n00:00:01,000 --> 00:00:01,900\nthen the manifest\n' > "$d/captions.srt"
53
+ cat > "$d/mosio.json" <<'EOF'
54
+ { "mosio": 0, "name": "pm-hybrid", "width": 360, "height": 640, "fps": 30, "seed": 1, "background": "#101820",
55
+ "assets": ["audio/tone.wav", "captions.srt", "assets/fonts/Inter-ExtraBold.otf", "assets/fonts/Inter-Medium.otf"],
56
+ "scenes": [ { "id": "a", "src": "scenes/a.html", "frames": 30 }, { "id": "b", "src": "scenes/b.html", "frames": 30 } ],
57
+ "tracks": [ { "id": "music", "kind": "audio", "clips": [ { "id": "tone", "src": "audio/tone.wav", "start": 0, "frames": 60, "fade_out": 10 } ] } ],
58
+ "captions": [ { "id": "cc", "src": "captions.srt", "z": 100, "fonts": ["assets/fonts/Inter-ExtraBold.otf", "assets/fonts/Inter-Medium.otf"],
59
+ "style": { "font": "Inter", "size_px": 28, "color": "#FAFAFA", "outline_color": "#000000", "outline_px": 2, "bold": true } } ] }
60
+ EOF
61
+ elif [ "$kind" = gl ]; then
62
+ # scene a: a three.js cube under a title (the canvas path draws it under the page); scene b: plain WebGL alone
63
+ # (drawn over the page). Both draw a solid red square in the middle.
64
+ cat > "$d/scenes/a.html" <<'HTML'
65
+ <!doctype html><html><head><meta charset="utf-8">
66
+ <script type="importmap">{"imports":{"three":"/_lib/three@0.187.0/build/three.module.js"}}</script>
67
+ <style>* { margin: 0; padding: 0; } html, body { width: 360px; height: 640px; overflow: hidden; background: #101820; } canvas { display: block; }</style></head>
68
+ <body><canvas id="c" width="360" height="640" data-mosio-id="a/cube"></canvas>
69
+ <h1 data-mosio-id="a/title" style="position:absolute;left:0;top:24px;width:360px;text-align:center;font:700 40px sans-serif;color:#fafafa">TITLE</h1>
70
+ <script type="module">
71
+ import * as THREE from "three";
72
+ const renderer = new THREE.WebGLRenderer({ canvas: document.getElementById("c"), antialias: false, preserveDrawingBuffer: true });
73
+ renderer.setPixelRatio(1); renderer.setSize(360, 640, false); renderer.setClearColor(0x101820, 1);
74
+ const scene = new THREE.Scene(), cam = new THREE.PerspectiveCamera(35, 360 / 640, 0.1, 100);
75
+ cam.position.set(0, 0, 6);
76
+ const cube = new THREE.Mesh(new THREE.BoxGeometry(1.6, 1.6, 1.6), new THREE.MeshBasicMaterial({ color: 0xff2020 }));
77
+ scene.add(cube);
78
+ __mosio.onSeek((t, f) => { cube.rotation.set(0.1, f * 0.01, 0); renderer.render(scene, cam); });
79
+ </script></body></html>
80
+ HTML
81
+ cat > "$d/scenes/b.html" <<'HTML'
82
+ <!doctype html><html><head><meta charset="utf-8"><style>* { margin: 0; padding: 0; } html, body { width: 360px; height: 640px; overflow: hidden; background: #101820; } canvas { display: block; }</style></head>
83
+ <body><canvas id="c" width="360" height="640" data-mosio-id="b/gl"></canvas>
84
+ <script>
85
+ const kind = ["web", "gl"].join("");
86
+ const g = document.getElementById("c").getContext(kind, { preserveDrawingBuffer: true, antialias: false });
87
+ __mosio.onSeek((t, f) => {
88
+ g.disable(g.SCISSOR_TEST); g.clearColor(0x10 / 255, 0x18 / 255, 0x20 / 255, 1); g.clear(g.COLOR_BUFFER_BIT);
89
+ g.enable(g.SCISSOR_TEST); g.scissor(110, 250, 140, 140); g.clearColor(1, 0x20 / 255, 0x20 / 255, 1); g.clear(g.COLOR_BUFFER_BIT);
90
+ });
91
+ </script></body></html>
92
+ HTML
93
+ cat > "$d/mosio.json" <<'JSON'
94
+ { "mosio": 0, "name": "pm-gl", "width": 360, "height": 640, "fps": 30, "seed": 1, "background": "#101820",
95
+ "libraries": ["three@0.187.0"], "shared": [], "assets": [],
96
+ "scenes": [ { "id": "a", "src": "scenes/a.html", "frames": 30 }, { "id": "b", "src": "scenes/b.html", "frames": 30 } ],
97
+ "transitions": [], "audio": [] }
98
+ JSON
99
+ else
100
+ cat > "$d/mosio.json" <<'EOF'
101
+ { "mosio": 0, "name": "pm-pure", "width": 360, "height": 640, "fps": 30, "seed": 1, "background": "#101820",
102
+ "libraries": [], "shared": [], "assets": [],
103
+ "scenes": [ { "id": "a", "src": "scenes/a.html", "frames": 30 }, { "id": "b", "src": "scenes/b.html", "frames": 30 } ],
104
+ "transitions": [], "audio": [] }
105
+ EOF
106
+ fi
107
+ }
108
+
109
+ fail=0
110
+ results=$OUT/results.tsv
111
+ printf 'case\trc\tseconds\tcapture.scenes\n' > "$results"
112
+
113
+ # render CASE PROJECT_DIR KIND CAPTURE REL|ABS CACHE|NOCACHE OUTNAME
114
+ render() {
115
+ local name=$1 dir=$2 kind=$3 cap=$4 how=$5 cache=$6 base=$7
116
+ local flags=(--capture "$cap") o rc=0 t0 t1
117
+ [ "$cache" = nocache ] && flags+=(--no-cache)
118
+ if [ "$how" = rel ]; then o="out/$base.mp4"; else o="$(native "$dir")/out/$base.mp4"; fi
119
+ t0=$(date +%s)
120
+ # rel: run from the project (-o relative to it); abs: run from a short folder with the project and -o absolute
121
+ # (Windows cannot start a process whose working directory is over 259 characters)
122
+ if [ "$how" = rel ]; then
123
+ (cd "$dir" && "$MOSIO" render . -o "$o" "${flags[@]}" > "$OUT/$name.json" 2> "$OUT/$name.err") || rc=$?
124
+ else
125
+ (cd "$OUT" && "$MOSIO" render "$(native "$dir")" -o "$o" "${flags[@]}" > "$OUT/$name.json" 2> "$OUT/$name.err") || rc=$?
126
+ fi
127
+ t1=$(date +%s)
128
+ local summary
129
+ summary=$("$PY" - "$(native "$OUT/$name.json")" "$(native "$dir/out")" "$base" "$kind" "$cap" "$rc" <<'PY'
130
+ import json, os, sys
131
+ path, outdir, base, kind, cap, rc = sys.argv[1:]
132
+ if os.name == "nt": # past 259 characters Python needs the verbatim form (LongPathsEnabled may be off)
133
+ outdir = os.path.abspath(outdir).replace("/", "\\")
134
+ if not outdir.startswith("\\\\?\\"):
135
+ outdir = "\\\\?\\" + outdir
136
+ errs = []
137
+ try:
138
+ v = json.load(open(path))
139
+ except Exception as e:
140
+ v = {}
141
+ errs.append(f"no JSON result ({e})")
142
+ if rc != "0":
143
+ errs.append(f"exit {rc}: {v.get('code')} {v.get('error')}")
144
+ mp4, man = os.path.join(outdir, base + ".mp4"), os.path.join(outdir, base + ".frames.json")
145
+ if not (os.path.isfile(mp4) and os.path.getsize(mp4) > 0):
146
+ errs.append(f"no MP4 at {mp4}")
147
+ if not os.path.isfile(man):
148
+ errs.append(f"no frames.json at {man}")
149
+ left = [f for f in os.listdir(outdir) if ".tmp-" in f] if os.path.isdir(outdir) else []
150
+ if left:
151
+ errs.append(f"staged leftovers {left}")
152
+ scenes = (v.get("execution") or {}).get("capture", {}).get("scenes") or []
153
+ caps = [s.get("capture", "") for s in scenes]
154
+ if len(caps) != 2:
155
+ errs.append(f"execution.capture.scenes has {len(caps)} entries: {scenes}")
156
+ elif cap == "png" and caps != ["png", "png"]:
157
+ errs.append(f"png render records {caps}")
158
+ elif cap == "canvas" and kind == "gl" and caps != ["canvas", "canvas"]:
159
+ errs.append(f"WebGL canvas render records {caps} (want canvas for both scenes: the canvas path draws WebGL)")
160
+ elif cap == "canvas" and kind == "hybrid" and not all(c.startswith("fallback:") for c in caps):
161
+ errs.append(f"hybrid canvas render records {caps}")
162
+ elif cap == "canvas" and not all(c == "canvas" or c.startswith("fallback:") for c in caps):
163
+ errs.append(f"canvas render records {caps}")
164
+ codes = [w.get("code") for w in v.get("warnings") or []]
165
+ if cap == "canvas" and any(c.startswith("fallback:") for c in caps) and "W_CAPTURE_CANVAS_FALLBACK" not in codes:
166
+ errs.append(f"a fallback without W_CAPTURE_CANVAS_FALLBACK (warnings {codes})")
167
+ if kind == "hybrid" and rc == "0":
168
+ pre = ((v.get("audio") or {}).get("preflight") or {})
169
+ a = pre.get("available_bytes")
170
+ if a is not None and a >= 2**63:
171
+ errs.append(f"audio preflight available_bytes {a}")
172
+ if a is None and not pre.get("available_note"):
173
+ errs.append(f"available_bytes null without a note: {pre}")
174
+ print(",".join(caps) or "-")
175
+ for e in errs:
176
+ print("ERROR " + e)
177
+ PY
178
+ )
179
+ local caps=${summary%%$'\n'*}
180
+ printf '%s\t%s\t%s\t%s\n' "$name" "$rc" "$((t1 - t0))" "$caps" >> "$results"
181
+ if grep -q '^ERROR' <<<"$summary"; then
182
+ echo "::error::$name: $(grep '^ERROR' <<<"$summary" | tr '\n' ' ')"
183
+ tail -5 "$OUT/$name.err" || true
184
+ fail=1
185
+ else
186
+ echo "ok $name ($caps, $((t1 - t0)) s)"
187
+ fi
188
+ }
189
+
190
+ for kind in pure hybrid; do
191
+ d=$OUT/p/$kind
192
+ rm -rf "$d"
193
+ make_project "$d" "$kind"
194
+ for cap in png canvas; do
195
+ render "$kind-$cap-rel-nocache" "$d" "$kind" "$cap" rel nocache "final-$cap-rel"
196
+ render "$kind-$cap-abs-cache" "$d" "$kind" "$cap" abs cache "final-$cap-abs"
197
+ done
198
+ done
199
+
200
+ # mosio check: the canvas fallback of a hybrid project is known before any render
201
+ "$MOSIO" check "$(native "$OUT/p/hybrid")" > "$OUT/check-hybrid.json" 2>&1 || true
202
+ if grep -q W_CAPTURE_CANVAS_FALLBACK "$OUT/check-hybrid.json"; then echo "ok check-hybrid warns W_CAPTURE_CANVAS_FALLBACK"; else
203
+ echo "::error::mosio check of the hybrid project has no W_CAPTURE_CANVAS_FALLBACK"; cat "$OUT/check-hybrid.json"; fail=1; fi
204
+
205
+ # WebGL scenes under --capture canvas are drawn by the canvas path (drawImage of the WebGL canvas under or over the
206
+ # page): the cube is in the frame (compared with png), the report says canvas per scene, and mosio check does not warn
207
+ d=$OUT/p/gl
208
+ rm -rf "$d"
209
+ make_project "$d" gl
210
+ render gl-png-rel-nocache "$d" gl png rel nocache gl-png
211
+ render gl-canvas-rel-nocache "$d" gl canvas rel nocache gl-canvas
212
+ "$MOSIO" check "$(native "$d")" > "$OUT/check-gl.json" 2>&1 || true
213
+ if grep -q 'webgl canvas' "$OUT/check-gl.json"; then echo "::error::mosio check warns about WebGL scenes the canvas path draws"
214
+ cat "$OUT/check-gl.json"; fail=1; else echo "ok check-gl has no WebGL fallback warning"; fi
215
+ FF=$(command -v ffmpeg || true)
216
+ [ -n "$FF" ] || FF=$(ls "${MOSIO_HOME:-/nonexistent}"/ffmpeg/bin/ffmpeg* 2>/dev/null | head -1 || true)
217
+ if [ -z "$FF" ]; then echo "::error::no ffmpeg to compare the WebGL frames"; fail=1; else
218
+ for f in 15 45; do
219
+ for c in png canvas; do
220
+ "$FF" -v error -nostdin -y -i "$(native "$d/out/gl-$c.mp4")" -vf "select=eq(n\\,$f)" -frames:v 1 -f rawvideo -pix_fmt rgb24 "$(native "$OUT/gl-$c-$f.rgb")" || true
221
+ done
222
+ if "$PY" - "$(native "$OUT/gl-png-$f.rgb")" "$(native "$OUT/gl-canvas-$f.rgb")" "$f" <<'PY'
223
+ import sys
224
+ a, b, f = open(sys.argv[1], "rb").read(), open(sys.argv[2], "rb").read(), sys.argv[3]
225
+ W = 360
226
+ def red(px, x0, y0, x1, y1): # mean red minus green in a box: the cube/square is red, the background dark blue
227
+ s = n = 0
228
+ for y in range(y0, y1):
229
+ for x in range(x0, x1):
230
+ i = (y * W + x) * 3
231
+ s += px[i] - px[i + 1]; n += 1
232
+ return s / n
233
+ box = (150, 290, 210, 350)
234
+ rp, rc = red(a, *box), red(b, *box)
235
+ diff = sum(abs(x - y) for x, y in zip(a, b)) / max(len(a), 1)
236
+ # scene a (frame 15): the title is drawn over the WebGL canvas, so the canvas went under the page
237
+ def region(px, x0, y0, x1, y1):
238
+ return [px[(y * W + x) * 3 + k] for y in range(y0, y1) for x in range(x0, x1) for k in range(3)]
239
+ ta, tb = region(a, 120, 28, 240, 64), region(b, 120, 28, 240, 64)
240
+ tdiff = sum(abs(x - y) for x, y in zip(ta, tb)) / len(ta)
241
+ title = f == "45" or (max(ta) > 200 and tdiff < 12)
242
+ print(f"frame {f}: red png {rp:.0f} canvas {rc:.0f}, mean abs diff {diff:.2f}, title diff {tdiff:.1f}")
243
+ sys.exit(0 if len(a) == len(b) == 360 * 640 * 3 and rp > 100 and rc > 100 and diff < 4 and title else 1)
244
+ PY
245
+ then echo "ok gl frame $f: the WebGL content is in the canvas render"; else echo "::error::gl frame $f: the WebGL content is missing from the canvas render"; fail=1; fi
246
+ done
247
+ fi
248
+
249
+ # a deep folder: the project ~215 characters (the owner's 208), so <out>/final-canvas.frames.json plus the old staged
250
+ # name went past 259; and one whose outputs are past 259 themselves (rendered from a short working directory)
251
+ for depth in 215 250; do
252
+ d=$OUT/deep
253
+ while [ "${#d}" -lt "$depth" ]; do d=$d/a-rather-long-folder; done
254
+ w=$(native "$d")
255
+ # the length that matters on Windows is the native one
256
+ while [ "${#w}" -lt "$depth" ]; do d=$d/x; w=$(native "$d"); done
257
+ rm -rf "$d"
258
+ make_project "$d" hybrid
259
+ render "deep$depth-hybrid-canvas-rel" "$d" hybrid canvas rel nocache "final-canvas"
260
+ make_project "$d/pure" pure
261
+ render "deep$depth-pure-canvas-abs" "$d/pure" pure canvas abs nocache "final-canvas"
262
+ done
263
+
264
+ column -t -s $'\t' "$results" 2>/dev/null || cat "$results"
265
+ # the job summary is best effort (a step running as another user may not write it)
266
+ if [ -n "${GITHUB_STEP_SUMMARY:-}" ] && [ -w "$GITHUB_STEP_SUMMARY" ]; then
267
+ { echo "### publish matrix ($(uname -s))"; echo; echo "| case | rc | s | capture.scenes |"; echo "|---|---|---|---|";
268
+ tail -n +2 "$results" | tr -d '\r' | while IFS=$'\t' read -r a b c e; do echo "| $a | $b | $c | $e |"; done; } >> "$GITHUB_STEP_SUMMARY" || true
269
+ fi
270
+ exit $fail
@@ -61,7 +61,7 @@ step three-check bash -c "cd '$T' && mosio check ."
61
61
  step three-render-cpu bash -c "cd '$T' && mosio render . -o out/three-cpu.mp4"
62
62
  mk gpu
63
63
  step three-render-gpu bash -c "cd '$T' && mosio render . -o out/three-gpu.mp4"
64
- step three-still-gpu bash -c "cd '$T' && mosio media frame . --frame 75 -o out/three-gpu-f75.png"
64
+ step three-still-gpu bash -c "cd '$T' && mosio stills . --at scene.end --scene cube"
65
65
  cp "$T"/out/*.mp4 "$T"/out/*.png "$OUT/" 2>/dev/null
66
66
 
67
67
  echo; cat "$REPORT"
@@ -46,7 +46,10 @@ scene takes minutes per frame. On a machine with a GPU (`mosio caps` says `"gpu_
46
46
  to `mosio.json`: frames take seconds. `mosio check` and `mosio caps --project P` suggest it (`W_WEBGL_ON_CPU`) when a
47
47
  three.js project would render on the CPU on a machine with a GPU. The profile uses ANGLE on Direct3D 11 on Windows and
48
48
  on EGL on Linux; `mosio caps` probes it as `chromium["webgl-gpu"]`, whose `software.webgl` must be `false` (`true`
49
- means the browser fell back to a software rasteriser such as WARP, "Microsoft Basic Render Driver"). Values: `webgl`
49
+ means the browser fell back to a software rasteriser such as WARP, "Microsoft Basic Render Driver"). On a laptop
50
+ with two GPUs the engine picks the one with the most VRAM and checks the page really uses it
51
+ (`chromium["webgl-gpu"].selected_adapter`); `"adapter": "integrated" | "nvidia" | …` in `renderer` or `MOSIO_GPU`
52
+ chooses another, and `W_GPU_NOT_SELECTED` says it could not. Values: `webgl`
50
53
  `"swiftshader"` (default) | `"gpu"`; `webgpu` `"off"` (default) | `"swiftshader"` | `"gpu"`. A GPU render repeats
51
54
  exactly only on the same GPU and driver; render the final on the machine (or the Hub) that will render it again.
52
55
 
@@ -45,7 +45,9 @@ Project files must be regular files (a symlink is `E_SYMLINK`). Never touch `.mo
45
45
  or `"gpu"`, `canary` is `"auto"` (default), `"exact"` or `"tolerance"`. A GPU profile needs a GPU (`mosio caps`
46
46
  reports `gpu_present`; otherwise `E_CAPABILITY_UNAVAILABLE`) and is exact only on the same GPU and driver.
47
47
  `mosio check` and `mosio caps --project P` say `W_WEBGL_ON_CPU` when a three.js project would render on the CPU on
48
- a machine that has a GPU. Details: the `mosio-3d` skill and `docs/3d/RENDERERS.md`.
48
+ a machine that has a GPU. On a machine with several GPUs the engine picks the one with the most VRAM and verifies it
49
+ (`"adapter": "auto" | "integrated" | "<vendor>" | "<index>"`, or `MOSIO_GPU`); `W_GPU_NOT_SELECTED` when it could
50
+ not. Details: the `mosio-3d` skill and `docs/3d/RENDERERS.md`.
49
51
  - A scene may say `"seek": "direct"`: single frames (`stills`, `preview`, `frames`, `media frame`) then seek straight
50
52
  to the frame instead of replaying the scene from frame 0. Only for a scene whose picture is a pure function of the
51
53
  frame number (heavy 3D or canvas scenes drawn in `onSeek`); a scene that uses the clock, rAF, timers or RNG after