Hello everyone. I have recently found some kind of dynamic lighting tutorial. Link
I have followed the tutorial, ported it on as3, used blendmodes instead of mask(for transparency) and applied gradient fill to make light look nicer. Now, is there a way to optimize it, make calculations go faster? If i try to add multiple light sources that way, game starts being slow.