viewerPerformanceWatchdogMixin

viewerPerformanceWatchdogMixin(viewer, options)

PerformanceWatchdog小部件添加到Viewer小部件的mixin。 此函数通常作为 61167中所示的参数。
Name Type Description
viewer Viewer 查看器实例。
options Object optional 具有属性的对象。
Name Type Default Description
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,因此请确保 它来自可信来源,因此您的应用程序不会受到跨站点脚本攻击的攻击。
Throws:
Example:
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(Cesium.viewerPerformanceWatchdogMixin, {
    lowFrameRateMessage : 'Why is this going so <em>slowly</em>?'
});