View Full Version : Snow type
tezzutezzu
December 18th, 2008, 07:55 AM
Hello Kirupians!
I've developed a little app (http://ctd-studio.co.uk/snowflakes/index.php?string=g`oox%20wl`r%20jhqtoh`mr!&from=tezzutezzu) for the studio I'm currently working with and I'd like to know what you think of it.
I'd also like to take the chance of wishing you all a good holiday break and a great new year!
see you in 09!
:?) tezzutezzu
scottc
December 18th, 2008, 09:10 AM
Nice work... are those snowflakes randomly drawn?
It starts to lag once the words are clear... try remove old particles, or draw them to a bitmap once they have stopped.
tezzutezzu
December 18th, 2008, 09:21 AM
Thanks Scott,
no the snowflakes are not randomly drawn (you reckon if I use shapes instead of library movieClip symbols performance could improve?)
Regarding drawing to a bitmap: if a movieclip is not moving or transforming it's still taking up memory?
Dom_
December 22nd, 2008, 05:57 AM
thats pretty cool.
scottc
December 22nd, 2008, 10:36 AM
Thanks Scott,
no the snowflakes are not randomly drawn (you reckon if I use shapes instead of library movieClip symbols performance could improve?)
Regarding drawing to a bitmap: if a movieclip is not moving or transforming it's still taking up memory?
1. not much performance would be gained if any.
2. yes and no, its not the memory that i'm worried about(although long term it would), its all the overlapping vector shapes causing so much redrawing, and costing lots of cpu... try and avoid too many vector shapes at once anyway.
Its why it would be faster if you removed the old ones, and "saved" them to a bitmapData, then when new ones appear on top, it would just draw over the old pixels.
try it out and see for your self.
Edit:
sorry if this post if a few days late :lol:
tezzutezzu
December 27th, 2008, 10:50 AM
Hi scottc!
(Ok now that's what I call a LATE reply)
2. yes and no, its not the memory that i'm worried about(although long term it would), its all the overlapping vector shapes causing so much redrawing, and costing lots of cpu... try and avoid too many vector shapes at once anyway
I see your point, flash has to redraw the vector shape (and apply filters!) every frame, instead if I save it to a bitmap once the snowflake has "landed" it will redraw just the bitmap and the new snowflakes.
I don't have the code to retest it but I bet it will be WAY faster.
thanks for the suggestion, it was really helpful.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.