TileMaps question


(billy2000) #1

Hyas. I am curious about a think.So i have a tilemap but most of the tilemap is transparent(alpha=0/just space to fill the image with, so the visible parts of the tilemap are positioned right).Does this space count when it comes about efficiency?Does FP still have to draw those alpha=0 pixels?Thx.


(billy2000) #2

Maybe i explained wrong my question XD. Does flash punk have to draw the transparent pixels too ? or FP draw just visible pixels? THX :smile:


(Jacob Albano) #3

I understood it from the first post. I don’t honestly know how to answer this. Intuitively the answer would be no, but I can’t think of a way for a renderer to simply skip daring pixels that are 100% transparent.

I’m going to say yes, the transparent pixels have to be “drawn” just like everything else, so if you add a huge image that’s entirely full of 0x00000000 pixels, it will still cut down on performance.


(billy2000) #4

Oh i understand . Thank you!