Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/tile_sorting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(threadNum, 16));
}
Loading