性能优化:精灵降采样、像素比降低、麂皮法线降分辨率
- 时间轴文字精灵超采样 SS 4→2,显存省 75% - Three.js 像素比上限 2→1.5,Cesium resolutionScale 1.5→1.0 - 麂皮法线贴图 1024×1280→512×640,启动逐像素计算省 75%
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
import * as THREE from 'three';
|
||||
|
||||
// 超采样倍数:文字以更高分辨率栅格化,拉近/放大后依然清晰
|
||||
const SS = 4;
|
||||
const SS = 2;
|
||||
|
||||
// 折行:尽量均分两行(标题较短),均分不满足时逐字折行
|
||||
function wrapText(ctx, text, maxW) {
|
||||
|
||||
Reference in New Issue
Block a user