PeterTh / dsfix

Interceptor dll for the improvement of Dark Souls PC
GNU General Public License v3.0
346 stars 58 forks source link

Only prefetch texture overrides on first init #34

Open niligulmohar opened 7 years ago

niligulmohar commented 7 years ago

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.

prototype99 commented 7 years ago

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