|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SOA World Conference
Virtualization Conference $200 Savings Expire May 16, 2008... – Register Today!
SYS-CON.TV SYS-CON.TV WEBCASTS |
MXDJ TOP LINKS YOU MUST CLICK ON ! Farata Systems Flex Blog
Adobe Flex 2 - Experimenting With Frame Rates
Is increasing Flash Player frame rates better?
By: Yakov Fain
Nov. 21, 2006 09:45 AM
Digg This!
From Farata Systems Blog Flex compiler builds an swf file, with a default frame rate of 24 frames per second, unless another value is specified during the compilation. For example, mxmlc -default-frame-rate=50 HelloWorld.mxml This command will build the swf file with the frame rate of fifty frames per second. Display list rendering and the ActionScript execution take turns, hence the frame rate can affect your application performance. To see how the compile time setting of the default-frame-rate option affects execution of the program let's write a small application that performs a simple calculation of the actual frame rate on each enterFrame event. <?xml version="1.0" encoding="utf-8"?> trace(int(1000/(getTimer()-lastTime))); <mx:Button label="Button"/> I ran this program on a Windows XP laptop with a single 1.8Ghz CPU in the Internet Explorer and FireFox browsers. Tables 1 and 2 show the difference between requested and actual frame rates and how hard the CPU works based on the frame rate settings. default-frame-rate 10 24 50 100 Table 1 Frame rates with Internet Explorer 6 default-frame-rate 10 24 50 100 Table 2 Frame rates with FireFox 1.5 While results slightly vary, they are self explanatory - lower frame rates translate into lower CPU utilization. You should experiment with the frame rate in your application to find the right balance between the GUI performance and CPU usage. Remember, your users may be running several programs at the same time, and you do not want to put their CPU on its knees just because you’ve enjoyed the super smooth graphics rendering. If you are not creating a movie, keep the frame rate as low as you can.
LATEST FLEX STORIES & POSTS
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||