mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-30 00:50:49 +08:00
Various updates (remove warnings, improve responsiveness of the UI by lowering the number of threads, et.)
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
//Local
|
||||
#include "q3DMASCTools.h"
|
||||
|
||||
#if defined(_OPENMP)
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
//qPDALIO
|
||||
#ifdef PLUGIN_IO_QPDAL
|
||||
#include "../../../core/IO/qPDALIO/include/LASFields.h"
|
||||
@@ -420,6 +424,7 @@ static bool ComputeMathOpWithNearestNeighbor( const CorePoints& corePoints,
|
||||
error.clear();
|
||||
#ifndef _DEBUG
|
||||
#if defined(_OPENMP)
|
||||
omp_set_num_threads(std::max(1, omp_get_max_threads() - 2));
|
||||
#pragma omp parallel for
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user