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

Port some settings to the new config system #8976

Merged
merged 1 commit into from Sep 8, 2020

Conversation

JosJuice
Copy link
Member

Split out from the Android PR #8975.

Other than the controller settings and JIT debug settings, these are the only settings which were defined in Java code but not defined in the new config system in C++. (There are still a lot of settings that are defined in the new config system but not yet saveable in the new config system, though.)

@@ -94,7 +95,7 @@ void AddMessage(std::string message, u32 ms, u32 rgba)

void DrawMessages()
{
const bool draw_messages = SConfig::GetInstance().bOnScreenDisplayMessages;
const bool draw_messages = Config::Get(Config::MAIN_OSD_MESSAGES);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a potentially time-sensitive location that could use some caching (and a hook into the config changed callback)? Feels like this might be called fairly often (like every frame or so).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is called exactly once a frame. I've assumed that running this 60 times a second wouldn't have any noticeable impact.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking of #8884 somewhere in the back of my mind, which seemed similar. Didn't test (nor profile) it though, so I'm just guessing from staring at the code.

Other than the controller settings and JIT debug settings,
these are the only settings which were defined in Java code
but not defined in the new config system in C++. (There are
still a lot of settings that are defined in the new config
system but not yet saveable in the new config system, though.)
@lioncash lioncash merged commit b350cf0 into dolphin-emu:master Sep 8, 2020
@JosJuice JosJuice deleted the port-some-settings branch September 8, 2020 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants