mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-12 05:40:24 +02:00
InputCommon: reduce number of image loads and texture cache invalidations by only running dynamic input textures once for all controllers
This commit is contained in:
1 parent
158674c274
commit
32d584a0f5
10 files changed
+117
-123
No files matched your search
@@ -40,13 +40,13 @@ void DynamicInputTextureManager::Load()
|
||||
}
|
||||
}
|
||||
|
||||
void DynamicInputTextureManager::GenerateTextures(const IniFile::Section* sec,
|
||||
const std::string& controller_name)
|
||||
void DynamicInputTextureManager::GenerateTextures(const IniFile& file,
|
||||
const std::vector<std::string>& controller_names)
|
||||
{
|
||||
bool any_dirty = false;
|
||||
for (const auto& configuration : m_configuration)
|
||||
{
|
||||
any_dirty |= configuration.GenerateTextures(sec, controller_name);
|
||||
any_dirty |= configuration.GenerateTextures(file, controller_names);
|
||||
}
|
||||
|
||||
if (any_dirty && g_renderer && Core::GetState() != Core::State::Starting)
|
||||
|
||||
Reference in new issue
Block a user