 			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;

			_bufferWidth  = Math.max(1, _bufferHeight * aspect);
			dispose();
			_emissionBmd  = new BitmapData(_bufferWidth, _bufferHeight, false, 0);
			_buffBmd      = new BitmapData(_bufferWidth, _bufferHeight, false, 0);
			_occlusionBmd = new BitmapData(_bufferWidth, _bufferHeight, true, 0);
			_occlusionBmp = new Bitmap(_occlusionBmd);
		}

			m.translate(-tx, -ty);
			m.scale(s, s);
			m.translate(tx, ty);
			_lightBmp.bitmapData = _applyEffect(_emissionBmd, _bufferBmd, m, passes);
			_lightBmp.width = _viewportWidth;
			_lightBmp.height = _viewportHeight;
			_lightBmp.smoothing = smoothing;
