mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix hardcoded plugin thread groups size.
I set that for debugging, forgot to remove it.
This commit is contained in:
@@ -144,7 +144,7 @@ namespace loot {
|
||||
unsigned int pluginsPerThread = ceil((double)plugins.size() / threadsToUse);
|
||||
BOOST_LOG_TRIVIAL(info) << "Loading " << plugins.size() << " plugins using " << threadsToUse << " threads, with up to " << pluginsPerThread << " plugins per thread.";
|
||||
|
||||
std::vector<std::vector<std::unordered_map<std::string, Plugin>::iterator>> pluginGroups(4);
|
||||
std::vector<std::vector<std::unordered_map<std::string, Plugin>::iterator>> pluginGroups(threadsToUse);
|
||||
size_t pluginGroup = 0;
|
||||
for (auto it = plugins.begin(); it != plugins.end(); ++it) {
|
||||
if (pluginGroups[pluginGroup].size() == pluginsPerThread) {
|
||||
|
||||
Reference in New Issue
Block a user