View Full Version : performance measures
corroded
05-04-2005, 10:16 AM
i am making a continuously scrolling image slideshow. i load the images dynamically using xml and place them in created movieclips
the image list grows almost exponentially because new images arrive from the db per second. i remove the clips after about 5 minutes, so only new ones will always be seen.
the question is this:
will flash slow down when things get to 1000-2000 images? the update may be faster than the garbage dumping so i just want to check if it will slow down or crash or anything. it may even approach 5-10k images.
any help is appreciated. thanks!
hangalot
05-04-2005, 01:31 PM
yes it will die. look at the effect loading an image has on ram usage
corroded
05-04-2005, 02:31 PM
ok thanks! i'll check trying to load 100 images
hangalot
05-04-2005, 02:34 PM
each image that you have loaded and have not destroyed via removeMovieClip or unLoadMovie will utilise the size of the image in memory. so even a 100 images of size 5 kb will have a dramatic effect on the player. you are going to have to rethink your model here
corroded
05-04-2005, 02:38 PM
hmm..so what do you suggest? like i said, it will have to be a continuos stream of images, which 'expire' 5 minutes after they are loaded...
i was thinkingi will only load 5 at a time, but what about their 'expiry' dates?
hangalot
05-04-2005, 02:41 PM
well i would write a class to manage each image. that class can then manage the expiry as well. not being familiar with the real problem, nor having seen any of the designs for this, its difficult to give you an answer. i think you can count on being able to display a max of 20 images at a time, on most computers, with that as a limitation consider the requirments again.
corroded
05-04-2005, 02:54 PM
hmm..i will try thinking of a class, but im trying to keep things simple(and failing)...i was thinking of displaying the 20 at a time, or actually even just 10. the others will have to be ina a queue of soe sort.. but maybe a class will help...i'm just thinking of alternate ways to do it..so far ive done about 4-5, each not working like they should
actually im also thinking not to give a timer...i'll just let the pictures expire after one go...i'll have to check on the specs for that..thanks a lot for all the help!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.