PerformanceWatchdog

new Cesium.PerformanceWatchdog(options)

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

Members

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

Methods

销毁小部件。如果是永久性的 正在从布局中删除小部件。
Returns:
如果对象已被销毁,则为true,否则为false。