Jump to content

Rectangle mask


Recommended Posts


Any opinions of the most performant way to do a simple rectangle mask on a Group?

Currently I'm using group.mask, it's ok, but I've read that masks are slow and they flush the webgl batch.

The children of the Group will be animated, so need to keep this in mind.

Would you think drawing the Group to a RenderTexture and calling renderXY every frame would be faster?

Or drawing the Group to BitmapData?

Actually I'm still unsure what the differences are between RenderTexture and BitmapData? 

You can draw DisplayObjects to them both, and they can both be used as a texture...?

Any help appreciated.


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...