PerformanceWatchdogViewModel

new Cesium.PerformanceWatchdogViewModel(options)

视图模型 PerformanceWatchdog.
Name Type Description
options object optional 对象,具有以下属性:
Name Type Default Description
scene Scene The Scene instance 用于监视性能。
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 The 当检测到低帧率时显示的消息。该消息被解释为HTML,因此请确保 它来自可信来源,因此您的应用程序不易受到跨站点脚本攻击。

Members

获取一个命令,该命令驳回低帧率消息。一旦它被驳回,信息 不会被重新显示。
获取或设置当检测到低帧率时显示的消息。这个字符串将被解释为HTML。
获取或设置一个值,该值指示低帧率消息先前是否已被用户驳回。如果有的话 被驳回,消息将不会被重新显示,无论帧速率如何。
获取 Scene 实例 用于监视性能。
获取或设置一个值,该值指示当前是否显示低帧率消息。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.