English中文

PerformanceWatchdogViewModel

new Cesium.PerformanceWatchdogViewModel(options)

视图模型为 The view model for PerformanceWatchdog.
名称 Name 类型 Type 说明 Description
options object 可选 optional 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 默认值 Default 说明 Description
scene Scene 要监视性能的场景实例。 The Scene instance for which to monitor performance.
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 形式解释,因此请确保它来自受信任的来源,以便您的应用程序不易受到跨站点脚本攻击。 The message to display when a low frame rate is detected. The message is interpeted as HTML, so make sure it comes from a trusted source so that your application is not vulnerable to cross-site scripting attacks.

成员 Members

获取消除低帧速率消息的命令。一旦关闭,该消息将不会重新显示。 Gets a command that dismisses the low frame rate message. Once it is dismissed, the message will not be redisplayed.
获取或设置检测到低帧速率时显示的消息。该字符串将被解释为 HTML。 Gets or sets the message to display when a low frame rate is detected. This string will be interpreted as HTML.
获取或设置一个值,该值指示用户之前是否已忽略低帧速率消息。如果它已被关闭,则无论帧速率如何,该消息都不会重新显示。 Gets or sets a value indicating whether the low frame rate message has previously been dismissed by the user. If it has been dismissed, the message will not be redisplayed, no matter the frame rate.
得到 Gets the Scene 用于监视性能的实例。 instance for which to monitor performance.
获取或设置一个值,该值指示当前是否正在显示低帧速率消息。 Gets or sets a value indicating whether the low frame rate message is currently being displayed.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.