Do 3D rendering on savestate load so next frame can be not blank.

This commit is contained in:
SuuperW 2025-05-11 19:55:28 -05:00
parent 55ffec340b
commit 88019146dd
2 changed files with 6 additions and 6 deletions

View File

@ -272,12 +272,14 @@ void GPU::DoSavestate(Savestate* file) noexcept
VRAMPtr_BOBJ[i] = GetUniqueBankPtr(VRAMMap_BOBJ[i], i << 14);
}
// This should happen before re-rendering the 3D buffer.
if (!file->Saving)
ResetVRAMCache();
GPU2D_A.DoSavestate(file);
GPU2D_B.DoSavestate(file);
GPU3D.DoSavestate(file);
if (!file->Saving)
ResetVRAMCache();
}
void GPU::AssignFramebuffers() noexcept

View File

@ -555,11 +555,9 @@ void GPU3D::DoSavestate(Savestate* file) noexcept
file->Var32(&CurPolygonAttr);
file->Var32(&TexParam);
file->Var32(&TexPalette);
RenderFrameIdentical = false;
if (softRenderer && softRenderer->IsThreaded())
{
softRenderer->EnableRenderThread();
}
CurrentRenderer->RenderFrame();
}