PPU/LLVM: Increase recompiler thread responsiveness.

This commit is contained in:
Vincent Lejeune 2015-09-05 00:25:26 +02:00
parent 9d18bba1df
commit 359258c3d3

View File

@ -351,7 +351,7 @@ void RecompilationEngine::Task() {
// Wait a few ms for something to happen
auto idling_start = std::chrono::high_resolution_clock::now();
std::unique_lock<std::mutex> lock(mutex);
cv.wait_for(lock, std::chrono::milliseconds(250));
cv.wait_for(lock, std::chrono::milliseconds(10));
auto idling_end = std::chrono::high_resolution_clock::now();
idling_time += std::chrono::duration_cast<std::chrono::nanoseconds>(idling_end - idling_start);
}