diff --git a/src/tile_sorting.cpp b/src/tile_sorting.cpp index 64588163..886005b5 100644 --- a/src/tile_sorting.cpp +++ b/src/tile_sorting.cpp @@ -286,5 +286,7 @@ void sortTileCoordinates( return false; }, - threadNum); + // block_indirect_sort slows down badly with many threads: on the planet (346M tiles) it took + // 200-300 s at 96 threads instead of about 7 s at 16, with the threads spinning on its internal lock. + std::min(threadNum, 16)); } \ No newline at end of file