mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-04 01:07:56 -04:00
Refactor GraphicsTuner, no longer tanks performance when open (#2365)
* Sort includes, move logic into ConfigVars, add reusable helpers * Refactor GraphicsTuner, only refresh labels when actually needed
This commit is contained in:
@@ -26,11 +26,6 @@ void reload() {
|
||||
s_directoryGroup.registrations.size());
|
||||
}
|
||||
|
||||
void set_enabled(bool enabled) {
|
||||
getSettings().game.enableTextureReplacements.setValue(enabled);
|
||||
reload();
|
||||
}
|
||||
|
||||
void shutdown() {
|
||||
aurora::texture::unregister_replacements(s_directoryGroup);
|
||||
s_directoryGroup.registrations.clear();
|
||||
|
||||
Reference in New Issue
Block a user