Tuesday, March 18, 2008
FPS ramping for Flash apps?
Tuesday, March 18, 2008
Back in my Applied Messaging/Convoq days, one of the things we wrestled with was how much CPU the Flash Plugin consumed when the application was doing nothing. That was AS2 and the redraw of mc elements, etc. would consume a lot as we had contact nodes that contained many nested movieclip elements, etc. Even when cacheAsBitmap was used, we had problems. Now that we have Sprites, it would have been a lot better.
Now that we can set the fps of a Flash application, has anyone used this in regards to VM ramping? For instance, when doing nothing, set the fps to 1. Just before looping through an object or animation, etc. ramp the fps back up to 31 or so... so that when you application NEEDS to be fast it is, and when its waiting user-input or socket data, its as resting as much as possible? I haven't seen any posts about using this often-requested feature. Now that we have it, who is using it? I am planning on playing with this. It will take a bunch of extra work on our part (developers), but I think its the responsible thing to do (if it works and is indeed beneficial).
Now that we can set the fps of a Flash application, has anyone used this in regards to VM ramping? For instance, when doing nothing, set the fps to 1. Just before looping through an object or animation, etc. ramp the fps back up to 31 or so... so that when you application NEEDS to be fast it is, and when its waiting user-input or socket data, its as resting as much as possible? I haven't seen any posts about using this often-requested feature. Now that we have it, who is using it? I am planning on playing with this. It will take a bunch of extra work on our part (developers), but I think its the responsible thing to do (if it works and is indeed beneficial).
Comments:
There are currently 1 Comments:
-
Dunc said...“I may not be fully aware of the troubles you encountered so please forgive me if that's the case. But it appears as though the Flash Player will relinquish CPU cycles to any application in need, on demand.
"The Flash Player requests all available (idle) CPU cycles to maintain a movie's maximum framerate during playback. However, the Flash Player will relinquish control to any other program requesting additional CPU cycles."
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15633”


