From 4924857fd3813592364fb7180dc6f6d2d4f7021b Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Mon, 13 Aug 2018 17:47:13 +0900 Subject: [PATCH] Add note on # of max threads. --- experimental/tinyobj_loader_opt.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/experimental/tinyobj_loader_opt.h b/experimental/tinyobj_loader_opt.h index e6c0b20..6048432 100644 --- a/experimental/tinyobj_loader_opt.h +++ b/experimental/tinyobj_loader_opt.h @@ -1238,6 +1238,8 @@ typedef struct { // 3. Do parallel parsing for each line. // 4. Reconstruct final mesh data structure. +// Raise # of max threads if you have more CPU cores... +// In 2018, 32 cores are getting common in high-end workstaion PC. #define kMaxThreads (32) static inline bool is_line_ending(const char *p, size_t i, size_t end_i) {