Skip to content

save font size across gd restarts - #82

Merged
Cvolton merged 9 commits into
geode-sdk:mainfrom
BeatACVR:main
Aug 14, 2026
Merged

save font size across gd restarts#82
Cvolton merged 9 commits into
geode-sdk:mainfrom
BeatACVR:main

Conversation

@BeatACVR

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/DevTools.cpp Outdated
// i wish i didnt have to do this but none of the lead devs have 4k monitors apparently!?!?!?
void DevTools::loadSettings() {
if (!m_mod) {
m_mod = Mod::get();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what is the reason for caching the mod?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pretty sure its because it would spam mod::get() otherwise while holding the slider

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mod::get() is just reading a global variable so you can call it a million times a second

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wait hold on am i being a dumbass

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mod::get() is just reading a global variable so you can call it a million times a second

are you fucking with me
this whole time i thought caching mattered when accessing it a lot

@BeatACVR

Copy link
Copy Markdown
Contributor Author

this is eye opening

@Cvolton

Cvolton commented Aug 14, 2026

Copy link
Copy Markdown
Member

probably good

@Cvolton
Cvolton merged commit cb3e459 into geode-sdk:main Aug 14, 2026
6 checks passed
@BeatACVR

BeatACVR commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants