So I’m working on a game where you’re travelling on a path through a dark forest, and I’ve got a lighting engine thats basically just an overlay over every tile that changes its alpha depending on its distance from a light source. I’ve almost got this system running really well, the only thing that REALLY dents performance is the precise alpha changes that run for every tile on the screen. If I round alpha to the nearest first decimal place I get the performance I want, but the light looks really jittery. What I’m wondering is–is there a way to optimize this? My overlay is a simple square with no scaling, no rotating, absolutely nothing happening to it except alpha changes every frame. Do I have to use an image for this or is there something better? Or should I use a different method entirely?
Thanks,
Taylor