Browse Source

No need to save/restore CPU flags in Engine::stepBlock() anymore.

tags/v2.5.0
Andrew Belt 9 months ago
parent
commit
20eafc98ff
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      src/engine/Engine.cpp

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

@@ -476,7 +476,6 @@ void Engine::stepBlock(int frames) {
std::lock_guard<std::mutex> stepLock(internal->blockMutex); std::lock_guard<std::mutex> stepLock(internal->blockMutex);
SharedLock<SharedMutex> lock(internal->mutex); SharedLock<SharedMutex> lock(internal->mutex);
// Configure thread // Configure thread
uint32_t csr = _mm_getcsr();
system::initCpuFlags(); system::initCpuFlags();
random::init(); random::init();


@@ -519,9 +518,6 @@ void Engine::stepBlock(int frames) {
internal->meterTotal = 0.0; internal->meterTotal = 0.0;
internal->meterMax = 0.0; internal->meterMax = 0.0;
} }

// Reset MXCSR back to original value
_mm_setcsr(csr);
} }






Loading…
Cancel
Save