Games
What is the fastest way to compute field of view on a grid?
Recursive shadowcasting computed field of view in 4.5 µs at radius 16 on a 256x256 map with 10% walls, about 3x faster than a Bresenham line to every cell, and missed 0 of 6,759 visible cells where the lines missed 959. The version most people copy has a bug that shows 7x more cells through solid wa