Merge pull request #13311 from iwubcode/dynamic_input_textures_reduce_image_writes

Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures
This commit is contained in:
JMC47
2025-03-23 15:12:28 -04:00
committed by GitHub
21 changed files with 155 additions and 59 deletions

View File

@ -16,6 +16,7 @@
#include "InputCommon/ControllerEmu/ControllerEmu.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/ControllerInterface/MappingCommon.h"
#include "InputCommon/InputConfig.h"
namespace MappingCommon
{
@ -135,6 +136,7 @@ public:
m_parent->Save();
m_parent->GetController()->UpdateSingleControlReference(g_controller_interface,
control_reference);
m_parent->GetController()->GetConfig()->GenerateControllerTextures();
}
void UpdateInputDetectionStartTimer()

View File

@ -322,6 +322,7 @@ void MappingWindow::OnLoadProfilePressed()
m_controller->LoadConfig(ini.GetOrCreateSection("Profile"));
m_controller->UpdateReferences(g_controller_interface);
m_controller->GetConfig()->GenerateControllerTextures();
const auto lock = GetController()->GetStateLock();
emit ConfigChanged();
@ -561,6 +562,7 @@ void MappingWindow::OnDefaultFieldsPressed()
{
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
m_controller->GetConfig()->GenerateControllerTextures();
const auto lock = GetController()->GetStateLock();
emit ConfigChanged();
@ -578,6 +580,7 @@ void MappingWindow::OnClearFieldsPressed()
m_controller->SetDefaultDevice(default_device);
m_controller->UpdateReferences(g_controller_interface);
m_controller->GetConfig()->GenerateControllerTextures();
const auto lock = GetController()->GetStateLock();
emit ConfigChanged();