mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 06:18:32 +00:00
InputCommon / VideoCommon: remove dynamic input reloading the texture cache, this is no longer needed, assets reload automatically!
This commit is contained in:
parent
ca8d6748d6
commit
e831d7b6bb
3 changed files with 5 additions and 32 deletions
|
@ -145,17 +145,6 @@ void TextureCacheBase::Invalidate()
|
|||
texture_pool.clear();
|
||||
}
|
||||
|
||||
void TextureCacheBase::ForceReload()
|
||||
{
|
||||
Invalidate();
|
||||
|
||||
// Clear all current hires textures, they are invalid
|
||||
HiresTexture::Clear();
|
||||
|
||||
// Load fresh
|
||||
HiresTexture::Update();
|
||||
}
|
||||
|
||||
void TextureCacheBase::OnConfigChanged(const VideoConfig& config)
|
||||
{
|
||||
if (config.bHiresTextures != backup_config.hires_textures ||
|
||||
|
@ -781,17 +770,10 @@ 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.
|
||||
FlushEFBCopies();
|
||||
}
|
||||
// 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.
|
||||
FlushEFBCopies();
|
||||
|
||||
Cleanup(g_presenter->FrameCount());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue