VideoCommon/Fifo: Move SConfig::GetInstance() outside the GPU loop.

This commit is contained in:
Admiral H. Curtiss 2021-06-23 23:52:26 +02:00
parent be2ec728e4
commit 1183fb3d2d
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();