mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
Split out everying remaining from Swap
This commit is contained in:
parent
2a18b34a73
commit
0da69055d9
21 changed files with 182 additions and 170 deletions
|
@ -769,6 +769,23 @@ void TextureCacheBase::DoLoadState(PointerWrap& p)
|
|||
}
|
||||
}
|
||||
|
||||
void TextureCacheBase::OnFrameEnd()
|
||||
{
|
||||
if (m_force_reload_textures.TestAndClear())
|
||||
{
|
||||
ForceReload();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Flush any outstanding EFB copies to RAM, in case the game is running at an uncapped frame
|
||||
// rate and not waiting for vblank. Otherwise, we'd end up with a huge list of pending
|
||||
// copies.
|
||||
g_texture_cache->FlushEFBCopies();
|
||||
}
|
||||
|
||||
g_texture_cache->Cleanup(g_renderer->m_frame_count);
|
||||
}
|
||||
|
||||
void TCacheEntry::DoState(PointerWrap& p)
|
||||
{
|
||||
p.Do(addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue