开发者

Flash code 'pauses' when in inactive tab?

开发者 https://www.devze.com 2023-03-21 12:54 出处:网络
Does flash pause its execution somehow if the browser tab in which its residing is inactive? I developed a multiplayer game开发者_StackOverflow社区 using cirrus and when I tried to play it by switchi

Does flash pause its execution somehow if the browser tab in which its residing is inactive?

I developed a multiplayer game开发者_StackOverflow社区 using cirrus and when I tried to play it by switching tabs, making a move in each tab, there were some inconsistencies regarding the way the game executed as if the inactive tab pauses the flash execution and then resume once it was active.

The game works perfectly in standalone flash player/debugger.


Yes, in 10.1 they introduced throttle:

http://saumyaray.wordpress.com/2011/07/14/flashplayer-throttle-solving-a-problem-or-creating-one/


Search your (lib) code for listeners to Event.ACTIVATE and Event.DEACTIVATE.

Those are commonly used to pause a game when it doesn't have focus.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号