UG> server/dlist.cpp: optimize add_invalidated_bounds() for UG> masks (don't invalidate outside of masks)
This patch optimizes Gnash' handling of masked sprites. The previous design simply re-rendered the whole area covered of a masked sprite, even if the visible region (which is defined by the mask) is only a fraction of it. For an before/after comparison check these movie clips: http://www.indunet.it/temp/mask-changing-mask.swf http://www.indunet.it/temp/mask-changing-masked.swf The improvement may be noticed on a slow machine or when activating invalidated bounds debugging (ENABLE_REGION_UPDATES_DEBUGGING). BTW, these movies also expose a mask rendering bug in AGG *g* Udo PS: The photo in this movie was taken from Flickr: http://www.flickr.com/photos/pmorgan/32606683/ _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit