[]浏览器失去焦点的时候能强制保持帧频吗?

//避免切换页面的时候fp掉到2帧
protected var channel:SoundChannel;
protected var sound:Sound;
protected function wakeUp():void
{
/*强迫至少保持8FPS
sound = new Sound(new URLRequest(""));
sound.play();
sound.close();
*/
//*/强迫保持原本设定的FPS
try
{
sound = new Sound();
sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp);
channel = sound.play();
}catch(error:Error){};
//*/
}

protected function onWakeUp(event:SampleDataEvent):void
{
event.data.position = event.data.length = 4096 * 4;
}
这是flash里的
laya里有这个黑科技吗
已邀请:

Aar0n

赞同来自:

没有。

要回复问题请先

商务合作
商务合作