|
@@ -1,3 +1,4 @@
|
|
|
|
|
+#include "Base.h"
|
|
|
#include "Heightmap.h"
|
|
#include "Heightmap.h"
|
|
|
#include "GPBFile.h"
|
|
#include "GPBFile.h"
|
|
|
#include "Thread.h"
|
|
#include "Thread.h"
|
|
@@ -108,7 +109,7 @@ void Heightmap::generate(const std::vector<std::string>& nodeIds, int width, int
|
|
|
__totalHeightmapScanlines = height;
|
|
__totalHeightmapScanlines = height;
|
|
|
|
|
|
|
|
// Determine # of threads to spawn
|
|
// Determine # of threads to spawn
|
|
|
- int threadCount = std::min(THREAD_COUNT, height);
|
|
|
|
|
|
|
+ int threadCount = min(THREAD_COUNT, height);
|
|
|
|
|
|
|
|
// Split the work into separate threads to make max use of available cpu cores and speed up computation.
|
|
// Split the work into separate threads to make max use of available cpu cores and speed up computation.
|
|
|
HeightmapThreadData* threadData = new HeightmapThreadData[threadCount];
|
|
HeightmapThreadData* threadData = new HeightmapThreadData[threadCount];
|