new Cesium.PerformanceWatchdogViewModel(options)

The view model for PerformanceWatchdog.
Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
scene Scene 用于监控性能的 NT 0 例.
lowFrameRateMessage string '这个应用程序似乎在您的系统中表现不佳. 请尝试使用不同的网页浏览器或更新您的视频驱动程序 。 optional 那个 message to display when a low frame rate is detected. The message is interpeted as HTML, so make sure 它来自一个可信任的来源,这样您的应用程序就不会受到跨网站的脚本攻击.

Members

dismissMessage : Command

获取命令以删除低帧速率消息 。 一旦它被解除, 信息 将不会被重播.

lowFrameRateMessage : string

当检测到低帧速率时获取或设置要显示的消息. 此字符串将被解释为 HTML .

lowFrameRateMessageDismissed : boolean

获取或设置一个值,表示低帧速率消息之前是否被用户驳回. 如果有的话 无论帧率如何,信件都不会被重播.

scene : Scene

Gets the Scene instance for which to monitor performance.

showingLowFrameRateMessage : boolean

获取或设置一个数值,表示当前是否显示低帧速率消息 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.