Only skip polygon cleaning if we are still at very high resolution

This commit is contained in:
Erica Fischer
2025-05-27 21:16:59 -07:00
parent 2d548bed06
commit 90d6edbc38
3 changed files with 1901 additions and 1217 deletions
+3 -1
View File
@@ -2381,6 +2381,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
tasks = 1;
}
printf("doing %d/%d/%d, detail %d, thresh %lld\n", z, tx, ty, line_detail, mingap);
{
pthread_t pthreads[tasks];
std::vector<simplification_worker_arg> args;
@@ -2393,7 +2395,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
args[i].shared_nodes_map = shared_nodes_map;
args[i].nodepos = nodepos;
args[i].shared_nodes_bloom = &shared_nodes_bloom;
args[i].trying_to_stop_early = trying_to_stop_early;
args[i].trying_to_stop_early = trying_to_stop_early && line_detail == first_detail;
if (tasks > 1) {
if (thread_create(&pthreads[i], NULL, simplification_worker, &args[i]) != 0) {