PerformanceWatchdogViewModel

new Cesium.PerformanceWatchdogViewModel(options)

PerformanceWatchdog 的视图模型(view model)。
Name Type Description
options object optional Object with the following properties:
Name Type Default Description
scene Scene 要监控其性能的 Scene 实例。
lowFrameRateMessage string 'This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers.' optional 当检测到低帧率时要显示的消息。该消息会被当作 HTML 解释,因此请确保其 来自可信来源,以免你的应用遭受跨站脚本(cross-site scripting)攻击。

Members

获取一个用于关闭低帧率消息的命令(command)。一旦关闭,该消息 将不会再次显示。
获取或设置当检测到低帧率时要显示的消息。该字符串会被当作 HTML 解释。
获取或设置一个值,指示低帧率消息先前是否已被用户关闭。如果已 被关闭,则无论帧率如何,该消息都不会再次显示。
获取要监控其性能的 Scene 实例。
获取或设置一个值,指示当前是否正在显示低帧率消息。
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。