Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't call OnConfigChanged() unless config actually changed #9536

Merged
merged 1 commit into from Feb 26, 2021

Conversation

Filoppi
Copy link
Contributor

@Filoppi Filoppi commented Feb 25, 2021

Also DualShock UDP Client was the only place in the code that assumed OnConfigChanged() was called at least once on startup or it won't load up the setting, so I took care of that.

OnConfigChanged() repopulates all the devices and it can be slow (and just plain unnecessary).
This might also help with any race conditions with devices population code, which as of now are unsafe and can break on some machines.

DualShock UDP Client is the only place in the code that assumed OnConfigChanged()
is called at least once on startup or it won't load up the setting, so I took care of that
@leoetlino leoetlino merged commit 9d0983c into dolphin-emu:master Feb 26, 2021
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants