allow disabling visibility calculations, addresses #1397