真实接口预热
This commit is contained in:
@ -27,6 +27,9 @@ BlendShapeAnimator 是一个引擎无关的形态键动画SDK,可以与任何3
|
||||
```javascript
|
||||
const config = {
|
||||
blendShapeScale: 1.0, // 形态键强度缩放
|
||||
minBlendShapeValue: 0.1, // ignore values below this to avoid spikes
|
||||
deltaThreshold: 0.002, // skip setInfluence when delta is tiny
|
||||
prewarmFrameCount: 30, // number of frames used for warmup
|
||||
dataFps: 30, // 动画数据帧率
|
||||
onStatusChange: (type, msg) => {
|
||||
// 状态变化回调
|
||||
@ -145,5 +148,7 @@ animator.playAnimation();
|
||||
|
||||
- 形态键名称会自动转换为小写进行匹配
|
||||
- SDK使用 `requestAnimationFrame` 进行动画更新
|
||||
- Blendshape values below 0.1 are zeroed to reduce CPU load
|
||||
- Startup prewarms prewarmFrameCount frames to hide the first-frame hitch
|
||||
- 空闲动画会在主动画播放时自动暂停
|
||||
- 所有形态键值范围为 0-1
|
||||
|
||||
Reference in New Issue
Block a user