Web template: adopt session-evolved features + render-on-demand everywhere
Ported from the test3d-5 session build: in-page variant switching, share
link (full state in URL hash), auto tour, toast, building-grouped floor
toggles, per-(floor,category) geometry merge (draw calls), progressive
overview->standard loading. Hardened during the port: {{BUILD}} placeholder
restored (Date.now() defeated caching), single-GLB deployments skip the
phantom overview.glb phase, building-group fallback now derives from
floor-key prefixes (assemble_campus convention) instead of a hardcoded "A"
test, bookmarks completed (list + restore + remove + hash persistence).
Render-on-demand lands in BOTH the template and the offline viewer: static
scenes rendered at 60fps pegged the GPU/fans for identical frames —
invalidate()-driven rendering + shadowMap.autoUpdate=false (bake per
change). 27号 measured: template web 0 frames over 3s idle, offline viewer
25 frames total through load; features browser-verified (tour, bookmarks,
hash restore), zero console errors. window.__renders is the diagnostic
counter — idle growth must be 0.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -330,6 +330,16 @@ glazing 在 walls 之前匹配。3.0m×22 层梯(0..66,机房顶69)。
|
||||
时点名"陌生方言,先自觉建映射"。
|
||||
三门禁未布防时 SKIP(既有项目零影响),新项目应全部布防。回归 +8 项。
|
||||
|
||||
24. **Web 模板功能移植 + 按需渲染**(test3d-5 会话演进版回收进模板,2026-07-04):
|
||||
变体页内热切换、分享链接(全状态进 URL hash)、自动巡游、toast、建筑分组
|
||||
楼层控制(无 buildings 字段时按楼层键前缀回退分组)、按(楼层,类别)合并
|
||||
网格削 draw call、渐进加载(单 GLB 部署自动跳过二段加载);书签补全
|
||||
(列表+恢复+删除+入 hash)。**按需渲染**根治"网页开着风扇狂转":静态场景
|
||||
只在变更时渲染(invalidate() + damping/autoRotate 期间连续),阴影
|
||||
autoUpdate=false 按变更重烤,模板与离线 viewer 同一契约;27号 实测
|
||||
模板 web 静止 3 秒 0 帧、离线 viewer 加载全程仅 25 帧。`window.__renders`
|
||||
为诊断计数,DoD 目检可要求"静止时不增长"。
|
||||
|
||||
**仍留档**:⑦ 未命名详图簇(核心筒大样)仍靠 clip 带宽人工剔除,标题纯度
|
||||
只覆盖有名字的辅助框(需要"详图簇 vs 楼层框"的几何判别设计);2# 的
|
||||
"十九、二十一层平面图"修改单簇(无障碍改造相关)未并入模型(需用户确认
|
||||
|
||||
Reference in New Issue
Block a user