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

Only prefetch texture overrides on first init #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niligulmohar
Copy link
Contributor

If texture override and texture prefetch was enabled, all overridden
textures would be loaded again every time the D3D device was reset, for
example when re-entering fullscreen mode again after alt-tabbing away from
DS. The already loaded textures would not be freed, leading to a
significant memory leak.

This change makes prefetching happen only on the first init, and should
fix #32.

If texture override and texture prefetch was enabled, all overridden
textures would be loaded again every time the D3D device was reset, for
example when re-entering fullscreen mode again after alt-tabbing away from
DS. The already loaded textures would not be freed, leading to a
significant memory leak.

This change makes prefetching happen only on the first init, and should
fix PeterTh#32.
@prototype99
Copy link

i can confirm that whilst it might run better it does not fix the issue that spawned it; i still cannot alt-tab dark souls

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.

Texture prefetch memory leak (?)
2 participants