开发者

How to get current milliseconds on flex application fast? Especially when SWF runs in browser on Mac or Linux

开发者 https://www.devze.com 2022-12-21 18:35 出处:网络
We have a simple flex game. And I want to keep my FPS constantly. Now I use: 开发者_JAVA技巧(new Date()).getTime();

We have a simple flex game.

And I want to keep my FPS constantly.

Now I use:

开发者_JAVA技巧(new Date()).getTime();

It's OK in windows and it's OK in flashplayer on Mac and Linux.

But in browsers in Mac and Linux this method is too slow. What can I use instead?


use getTimer() More info at: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2#getTimer%28%29

0

精彩评论

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

关注公众号