Merge pull request #9837 from AdmiralCurtiss/mysterious-voodoo-performance-fix

VideoCommon/Fifo: Move SConfig::GetInstance() outside the GPU loop.
This commit is contained in:
Léo Lam 2021-06-24 00:41:43 +02:00 committed by GitHub
commit b66e88e4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -297,10 +297,10 @@ void RunGpuLoop()
AsyncRequests::GetInstance()->SetEnable(true);
AsyncRequests::GetInstance()->SetPassthrough(false);
s_gpu_mainloop.Run(
[] {
const SConfig& param = SConfig::GetInstance();
const SConfig& param = SConfig::GetInstance();
s_gpu_mainloop.Run(
[&param] {
// Run events from the CPU thread.
AsyncRequests::GetInstance()->PullEvents();