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

Replacement: Clear cache on disable #15740

Merged
merged 2 commits into from
Jul 28, 2022

Conversation

unknownbrackets
Copy link
Collaborator

I didn't test this carefully as far as reloading, but this should make it easier to reload texture replacements.

-[Unknown]

When lazy loading, let's clear cached replacement data on disable.
This is purges memory immediately, and also allows force-reloading
textures by toggling the setting.
If it was previously lazy-loaded and purged, we might leak a waitable.
@hrydgard
Copy link
Owner

Looks safe enough, let's go for it.

@hrydgard hrydgard merged commit a78a709 into hrydgard:master Jul 28, 2022
@unknownbrackets unknownbrackets deleted the texreplace-clear branch July 28, 2022 13:53
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