Can the ENTER_FRAME event be missed or received delayed by the listener?

你离开我真会死。 提交于 2019-12-13 04:41:12

问题


Is ENTER_FRAME always received, even if another process occupies the CPU, OR the listener might miss one or more ENTER_FRAME events -then receive several of those events delayed in a batch as usually happens in Windows?

(I'm using pure AS3 and Stage3D with 3D GPU rendering -no 2D display objects, Flash timeline, movieclips etc).


回答1:


ENTER_FRAME depends on frame rate. And frame rate is not a constant - it depends on a lot of factors, few of which are CPU and GPU. The listener won't miss anything, it's just that the ENTER_FRAME event will be dispatched irregularly.



来源:https://stackoverflow.com/questions/22988765/can-the-enter-frame-event-be-missed-or-received-delayed-by-the-listener

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!