I am doing some simple parrallex with a horizontal tilling in as2 for a fun interactive, and the cloud layer has alpha's in which I believe is slowing stuff down considerably. It would be ashame to merge cloud and sky layers, so I wondered if blitting/double buffering, filter settings or similar tricks might help?
Arsis 2008.03.23, 04:49AM —
Using pngs?
Avoid using masks at all costs, remove smoothing, step player quality down to medium, mimise transparency areas, use as3.....
Post an example of what you are trying to do..... size, layers, structure etc will all have relevance to the best approach.
JLM 2008.03.23, 10:06AM —
as3 is not an option for this client.
layers are like this
framework
video/content
<< foreground
flade movement >>
<< animation/track
video/content
< parallex
< parallex alpha
<< background
arrow indicate general movement, its 25 + 4 tiles preload loop and runs at screen size generally there are 3 tiles moving tiles per layer approx the same width at any one time with one or two onscreen. Alpha seems very heavy so I have been masking the png's and loading as swf's, maybe I could cut them up but time is limited. I am mainly dealing with loading aspects and scene jumping.
Arsis 2008.03.23, 11:04AM —
perhaps try pre-rendering the parallax and caching it with an array of bitmap objects. Easy to do if the movement is scripted and shouldn't require too much memory.
JLM 2008.03.23, 02:08PM —
Thanks for the ideas, but not following, you can move backwards/forwards movement is scripted but subject to mouse/keyboard. The parallex layers will run at different speeds, it is effectively shorter and so moves 70% of the distance and is 70% shorter for instance, there may only be one parallex layer if speed is an issue the background layer behind the parallex moves with the foreground layer, due to limitations of inbetween distances of interest areas.
I am not sure I understand what I should be caching, I load everything and then unload and reload from browser cache at the moment, although not fully implemented the reload movieloader and have been just hidding and positioning off stage of the layer. If I was to cache every possible frame for the parallex and background layer combination it would be huge, and only some is initially loaded?
Does that make sense what I am explaining, sorry can't post a link, I have some test code for the tiling but its probably too removed to make much sense in relation to the actual.