Files
workinf_Blender_Wasm/web
mes123456 5a21a34c34
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
fix(web): keep the native viewport usable after opening a large project
root cause chain, matching desktop semantics: the desktop runs a file load on
the WM thread, so nothing else is dispatched while it runs. the web port sends
pythonExec/viewportObjectAxis while an 85 s open (and a frame posted before it)
still own the worker; those requests pass the 30 s timeout, the client marks
Main uncertain, and every later frame is rejected with "WebEngine Main 状态待恢复"
until the surface stops. the test helper exposeWebTools() also switches to the
web view, idling the pump and producing the old "needs a wake-up" artefact.

fixes:
- client: timeouts of read-only sync commands no longer mark Main uncertain;
  only commands that may mutate it do.
- canvas: a frame rejected for Main recovery keeps the pump alive with a bounded
  250 ms retry, and the frame carrying a new owner counts as the first
  acknowledged frame so readiness returns one round-trip sooner.
- worker: publish the scene only when Main's revision advanced or the frame
  carried input; publish geometry only with a revision change and let the app
  retain the previous buffers. response payloads drop from 1888 transfers to a
  small snapshot instead of a full SceneIR and geometry projection per frame.

regression case: opening the 238-object fixture inside the native view reaches
readiness with no pointer input and consumes a middle-drag; headed run passes
in ~2.4 minutes. acceptance stays NOT_CLAIMED.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-06 08:32:19 +08:00
..