Skip navigation
Currently Being Moderated

When do surfaces get uploaded to VRAM / removed from VRAM?

Apr 27, 2011 2:58 AM

Hello! I'm aware of the differences of cacheAsBitmap and cacheAsBitmapMatrix and when to use them. However, can someone answer me the following questions?


1. If I set cacheAsBitmap=true - when does the DisplayObject get rendered into a bitmap? at the next screen update or when the object is next time actually visible on the stage?


2. same question for VRAM upload. If i set cacheAsBitmap=true - at what moment does the bitmap get uploaded to the GPU? right after it got rendered or only when it next time appears on the screen?


3. if I set cacheAsBitmap=false - does the texture get removed from VRAM instantly?


4. what happens if a DisplayObject that has cacheAsBitmap=true is set to visible=false. Will the texture persist in VRAM memory?



of course the questions apply when GPU rendering is used.




More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points