GPU: Eliminate heap allocation on state load

This commit is contained in:
Stenzek
2024-06-27 16:07:49 +10:00
parent f9bf2e8239
commit 044d7a4797
4 changed files with 28 additions and 14 deletions

View File

@ -73,6 +73,9 @@ bool GPU_SW::Initialize()
bool GPU_SW::DoState(StateWrapper& sw, GPUTexture** host_texture, bool update_display)
{
// need to ensure the worker thread is done
m_backend.Sync(true);
// ignore the host texture for software mode, since we want to save vram here
return GPU::DoState(sw, nullptr, update_display);
}