Skip to content

KBE3D / KBCore / Cesium / PerformanceWatchdogViewModel

类: PerformanceWatchdogViewModel

The view model for PerformanceWatchdog.

参数

Object with the following properties:

参数

The Scene instance for which to monitor performance.

参数

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.

属性

lowFrameRateMessage

lowFrameRateMessage: string

Gets or sets the message to display when a low frame rate is detected. This string will be interpreted as HTML.


lowFrameRateMessageDismissed

lowFrameRateMessageDismissed: boolean

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.


showingLowFrameRateMessage

showingLowFrameRateMessage: boolean

Gets or sets a value indicating whether the low frame rate message is currently being displayed.


scene

scene: Scene

Gets the Scene instance for which to monitor performance.


dismissMessage

dismissMessage: Command

Gets a command that dismisses the low frame rate message. Once it is dismissed, the message will not be redisplayed.

构造函数

构造函数

new PerformanceWatchdogViewModel(options?: { scene: Scene; lowFrameRateMessage?: string; }): PerformanceWatchdogViewModel

参数

options?
scene

Scene

lowFrameRateMessage?

string

返回

PerformanceWatchdogViewModel

KBE3D @3.0.0 Copyright © 2024-present KBE3D