Add configurable area asset budgets

This commit is contained in:
que01 committed 2026-08-04 12:28:43 +08:00
1 parent f78080bbfa
commit 463cb06be4
18 files changed
+443 -42

No files matched your search

+4
View File
@@ -2,6 +2,10 @@
## 2026-08-04
- GLB 预算现在由区域配置契约化:`budget.glbSizeMb`、`nodes`、`images`、`triangles` 和
`embeddedImageBytesMb` 可覆盖默认限制;任何放宽必须有 `budget.reason`。共享 digest 新增
静态/实例化 render triangles、嵌入贴图字节、节点来源和最大贴图摘要,`diagnose:area`、
`check:area` 与 Cesium/compress manifest 复用同一预算评估,避免阈值漂移。
- 新增 `npm run preflight:area -- --config config/areas/<area>.json`:手工编辑 OSM 后可在
QGIS / Blender / Cesium 前检查 bounds、缺失 node、building way 闭合性、building
multipolygon member/ring 与显式高度。结构错误会非零退出;成功结果原子写入