PerformanceWatchdog

new Cesium.PerformanceWatchdog(options)

Monitors performance of the application and displays a message if poor performance is detected.
参数名称 类型 描述信息
options object 可选 Object with the following properties:
参数名称 类型 默认值 描述信息
container Element | string The DOM element or ID that will contain the widget.
scene Scene The Scene 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.' 可选 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.

成员(属性)

Gets the parent container.
Gets the view model.

方法

Destroys the widget. Should be called if permanently removing the widget from layout.
返回值:
true if the object has been destroyed, false otherwise.