注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

神魔破杜梓的叨叨堂

Programming every day!

 
 
 

日志

 
 
 
 

突破flash player 60 fps的限制  

2008-05-29 09:10:44|  分类: My Tech |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
原文来自tekool.net

There is actually some buzz around the 60 frames per second draw rate limit fixed by browsers to Flash player. All the noise cames from the bubblemark benchmark that is intended to compare performances of different plug-ins while playing an animation at the maximum speed they can. The only result we get with this test is there is a limit fixed by browsers to the draw rate of plug-ins. Everybody is agree to said that results of this test are distorted.

Sean Christmann is working on another benchmark project named GUIMark that have the smart idea to only benchmark RIA tools performances under the 60 fps limit. By doing this, the plug-in rendering rate is not artificially limited by the browser, but by performances of the plug-in itself.

The problem is that a new test came up on the bubblemark website to demonstrate that Silverlight 2 could run an animation up to 950 fps (on my computer it does) while Flash player only plays 60fps. Honestly, I don't know how Silverlight could override browsers rendering rate limits. The only thing interesting me was that I could do as good as Silverlight in a standalone Flash player.

I already have worked on finding a way to override this limit to have better results with bubblemark benchmark since a discussion I have with James Ward when he cames in Paris for the last Adobe Air tour in January. I see that the problem still interests him. :)

So the last week-end, after doing some tests I realize that when changing the plug-in wmode property value to "transparent" in Firefox with my bubblemark benchmark, it reaches an uncredible 950fps framerate on my computer. It is as good as Silverlight does on the bubblemark website. I have made some other tests and it sadly only works in Internet Explorer.

Here is the animation (that could reach a good framerate only with Firefox) :


Here is the source of the Flex project that I have used to export this animation. Nothing fancy, I just have refactored the bubblemark example, lowered the Timer event to zero and added a static html-template to the flex project.

You could try this web page were the plug-in runs faster because there is less HTML content than here (you could link it directly if you want).

I'm interested to know if you get same results on Firefox Mac and eventually other browsers and other OS. I already have some results but made with an old macintosh, I'm not sure if I can rely on it.


  评论这张
 
阅读(551)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017