Terrain lightmap performance

This is likely more useful for FLAMMABLE* EXPLODES* etc, but I can PR that into main later.