rapidobj icon indicating copy to clipboard operation
rapidobj copied to clipboard

Limiting thread count support

Open P1nkL1on opened this issue 8 months ago • 0 comments

In rapidobj.hpp:7085 the thread count is hardcoded to

auto num_threads = std::thread::hardware_concurrency();

Just asking if there is any chance to vary this from the ReadFile API or by altering some config/prefs. The usecase of that if user want to force rapidobj to load in 1 thread, e.x. while having parallelism on higher scale. Also, as far as i understand, single/multi threaded approach depends strictly on file size, which is clever, but not very flexible.

P1nkL1on avatar Jun 04 '24 06:06 P1nkL1on