PDA

View Full Version : cacheAsBitmap help



Deviant1853
August 15th, 2005, 12:15 PM
Ive been playing with Flash 8 latley particularly with the filters, but I would love to see cacheAsBitmap working.

The way I am implementing it is:


var myMovieClip:MovieClip = this.attachMovie("point","point",this.getNextHighestDepth());
myMovieClip.cacheAsBitmap = true;

I dont see any improvment in performance on large content movies. Am I doing something wrong?

senocular
August 15th, 2005, 12:28 PM
you can see some examples here:
http://www.brokenbutton.com/f8test.html
http://www.margaris.de/flash8/bitmap/bitmapcache.html
http://www.potapenko.com/tmp/test_8_flash.html
http://www.flashguru.co.uk/maelstrom/?example=isometric%20grid%20image

You may just need a situation which uses it more effectively. I cant tell what you're doing with what you've provided

Deviant1853
August 15th, 2005, 12:37 PM
Thanks for those, I have seen them before though. I am doing a basic 3d engine, and I have several hundred vertex's. The problem is it slows down because of so many object moving. I wanted to use it to test the cacheAsBitmap option in Flash 8 to see if there is any improvment.

The problem is im not sure if im implementing it properly.

nih
August 16th, 2005, 05:28 AM
I suspect that if you're redrawing polys each frame then caching might not be of much use to you. I can't comment for sure though as it's not clear exactly what is being cached.

emolen
November 10th, 2005, 10:57 PM
if you read the help in Flash it shows you where you can turn it on at runtime, if this doesn't help I have seen it used as

onMouseMove = function()
{
mc1.cacheAsBitmap = true;
};

Deviant1853
November 11th, 2005, 11:43 AM
Thanks for the help but the main problem was that I couldnt cache the item because it was changing constantly :)

emolen
November 11th, 2005, 01:14 PM
did you fix that? cause I'm working with bitmapdisplacent and attempting to cache it, but it is also constantly changing. It seems to be helping but after a while flash player or whatever just crashes. Any ideas whay.

theflash
December 5th, 2005, 06:08 AM
cacheAsBitmap works good only for the graphics elements who does not get updated internally (its own timeline) otherwise it has redraw problems.....