Browse Source

Global random state no longer needs to be initialized for each Engine thread.

tags/v2.6.0
Andrew Belt 6 months ago
parent
commit
f659b0432e
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      src/engine/Engine.cpp

+ 0
- 3
src/engine/Engine.cpp View File

@@ -9,7 +9,6 @@
#include <engine/Engine.hpp>
#include <settings.hpp>
#include <system.hpp>
#include <random.hpp>
#include <context.hpp>
#include <patch.hpp>
#include <plugin.hpp>
@@ -523,7 +522,6 @@ void Engine::stepBlock(int frames) {
SharedLock<SharedMutex> lock(internal->mutex);
// Configure thread
system::resetFpuFlags();
random::init();

internal->blockFrame = internal->frame;
internal->blockTime = system::getTime();
@@ -1337,7 +1335,6 @@ void EngineWorker::run() {
contextSet(engine->internal->context);
system::setThreadName(string::f("Worker %d", id));
system::resetFpuFlags();
random::init();

while (true) {
engine->internal->engineBarrier.wait();


Loading…
Cancel
Save