Skip to content

save font size across gd restarts#82

Open
BeatACVR wants to merge 4 commits intogeode-sdk:mainfrom
BeatACVR:main
Open

save font size across gd restarts#82
BeatACVR wants to merge 4 commits intogeode-sdk:mainfrom
BeatACVR:main

Conversation

@BeatACVR
Copy link

No description provided.

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
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
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
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
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
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
Author

this is eye opening

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.

2 participants