VideoBackendBase: Do save state logic on the GPU thread

This commit is contained in:
Stenzek
2019-06-29 18:35:12 +10:00
parent a25a4e0708
commit b26bb0605b
7 changed files with 40 additions and 30 deletions

View File

@ -154,6 +154,10 @@ void AsyncRequests::HandleEvent(const AsyncRequests::Event& e)
case Event::PERF_QUERY:
g_perf_query->FlushResults();
break;
case Event::DO_SAVE_STATE:
g_video_backend->DoStateGPUThread(*e.do_save_state.p);
break;
}
}