When fires never go out, only trees next to last minute's new fires can catch
The rescan is correct, but on a big forest it's slow. When fires never go out, there's a faster way.
forest F caught at minute 0 or 1. * caught at minute 2: the frontier. ? are the only trees that can catch at minute 3. A rescan reads every . too, and nothing changes there.
A rescan reads every cell every round, per round, and a spread can take many rounds. On a 60 by 60 forest with one fire in a corner, the fire needs 118 minutes. The rescan makes 119 passes, the last one changing nothing, so it reads 428,400 cells: 0.169 s here, the middle of five runs.
Most of those reads can't change anything. When fires never go out, a tree can only catch in a minute if one of its neighbors caught the minute before. Otherwise its count of burning neighbors didn't change, and it would have caught already. So keep the cells that changed last round, called the frontier, and look only at their neighbors. The worked example below builds that, and on the same forest it took 3.0 ms.
In the editor, write candidates(grid, frontier): the trees that share a side with a cell in frontier. forest is the forest in the figure, and frontier holds the three cells that caught at minute 2.