Browse Source

Use guided scheduling mode in openmp for. Seems to be 5% better in my tests.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
350ff7c3e7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/engine/Engine.cpp

+ 1
- 1
src/engine/Engine.cpp View File

@@ -121,7 +121,7 @@ static void Engine_step(Engine *engine) {

// Iterate modules
int modulesLen = engine->modules.size();
#pragma omp parallel for num_threads(engine->threadCount) schedule(dynamic)
#pragma omp parallel for num_threads(engine->threadCount) schedule(guided, 1)
for (int i = 0; i < modulesLen; i++) {
Module *module = engine->modules[i];
if (!module->bypass) {


Loading…
Cancel
Save