Forum ‹ ActionScript 3.0 ‹ Flash Redraw Time
4 posts
• Page 1 of 1
Flash Redraw Time
Hey-
I'm working on optimizing some graphics, but am unable to find a way to determine how long it takes flash to draw them.
Does anyone know of a way to do this?
Thanks!
I'm working on optimizing some graphics, but am unable to find a way to determine how long it takes flash to draw them.
Does anyone know of a way to do this?
Thanks!
- mfranzs
- Posts: 98
- Joined: August 29th, 2010, 3:27 am
Re: Flash Redraw Time
Mmm, you should be able to get an approximation by doing the following.
1: Set frame-rate to 120
2: Start time as the last line of an enterframe listener
3: Write out time since exit frame on enter frame.
1: Set frame-rate to 120
2: Start time as the last line of an enterframe listener
3: Write out time since exit frame on enter frame.
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
Re: Flash Redraw Time
Wow, works great, thanks ^^
- mfranzs
- Posts: 98
- Joined: August 29th, 2010, 3:27 am
Re: Flash Redraw Time
Even better, Flash Builder comes with a profiler that will tell you exactly how much of the CPU is taken up by rendering.
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
4 posts
• Page 1 of 1