 			addChild(_lightBmp);
 		}
 
-		// Sets the container's size (in pixels).
+		// Sets the container's size (in pixels). This method recreates internal buffers (slow), do not
+		// call this on every frame.
 		public function setViewportSize(width:uint, height:uint):void {
 			_viewportWidth = width;
 			_viewportHeight = height;

		}

		// Sets the approximate size (in pixels) of the effect's internal buffers. Smaller number means lower
		// quality and better performance.
		public function setBufferSize(size:uint):void {
			_bufferSize = size;
			_updateBuffers();

		protected var _halve:ColorTransform = new ColorTransform(0.5, 0.5, 0.5);
		protected var _occlusionBmd:BitmapData;
		protected var _occlusionBmp:Bitmap;
		protected var _bufferBmd:BitmapData;
		protected var _lightBmp:Bitmap = new Bitmap;
		protected var _bufferSize:uint = 0x8000;
		protected var _bufferWidth:uint;
