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

UI image loading refactor #18537

Merged
merged 6 commits into from
Dec 13, 2023
Merged

UI image loading refactor #18537

merged 6 commits into from
Dec 13, 2023

Conversation

hrydgard
Copy link
Owner

The class ManagedTexture was originally meant for display of textures in the UI that would auto-reload from disk after DeviceLost/DeviceRestored.

Most of the existing uses are not used that way though, it's just been used as a convenient way to load image files.

So, do some refactoring of the image load logic to get rid of nearly all of them.

The actual reason is that I'm gonna make ManagedTexture a little more complex and implement image load on thread, for faster load of save state screenshots. The pause menu is a bit sluggish to open if you have five slots with high res screenshots. But for game icons and stuff, that's just not necessary.

@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Dec 12, 2023
@hrydgard hrydgard added this to the v1.17.0 milestone Dec 12, 2023
@hrydgard hrydgard merged commit 32f5f08 into master Dec 13, 2023
18 checks passed
@hrydgard hrydgard deleted the ui-image-refactor branch December 13, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant