Skip to content

fps 上限是固定写死了吗? #158

Answered by wewindy
DuShuYuan asked this question in Q&A
Discussion options

You must be logged in to vote

大多数普通显示器的刷新率是60,显卡输出到显示器的信号是60Hz的
但是需要程序主动控制的话,你可以修改 Cesium 有关的 API

import { Viewer } from 'cesium'

const viewer = new Viewer('container', {
  targetFrameRate: 90
})

targetFrameRate 参数在 viewer 实例上也是有的,它的作用条件见 Cesium 官方文档,不一定设置了就有作用。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DuShuYuan
Comment options

Answer selected by zouyaoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants