PerformanceWatchdog

new Cesium.PerformanceWatchdog(options)

监视应用程序的性能,并在检测到性能不佳时显示一条消息。
Name Type Description
options object optional 对象,具有以下属性:
Name Type Default Description
container Element | string 将包含小部件的DOM元素或ID。
scene Scene The 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 The 当检测到低帧率时显示的消息。该消息被解释为HTML,因此请确保 它来自可信来源,因此您的应用程序不易受到跨站点脚本攻击。

Members

获取父容器。
获取视图模型。

Methods

销毁小部件。如果从布局中永久删除小部件, 则应该调用。
Returns:
如果对象已被销毁,则为true,否则为false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.