qsniyg / ksp_stuff

GNU General Public License v3.0
9 stars 4 forks source link

Create fake .inis per ESP #18

Closed qsniyg closed 5 years ago

qsniyg commented 5 years ago

This could potentially significantly improve the initial loading time, by reducing the amount of lookups required.

1) Create the in-memory mod VFS 2) Check for each ESM/ESP, and see if a .ini of the same name exists (e.g. RaceMenu.esp -> RaceMenu.ini) 3) If not, symlink to /dev/null

I haven't tried this, but in theory, it should work.

qsniyg commented 5 years ago

PROFILE_Open in the wine source code strongly suggests doing this would help (and also suggests this issue might not actually appear under Windows). If the .ini file is successfully opened, it seems like it will not try to open it again.

ajspandigital commented 5 years ago

I'll try test this code tomorrow, and get some timings on it, and if I'm happy it doesn't break anything and adds value I'll merge it.

ajventer commented 5 years ago

Oh wait, this is an issue, not a PR yet. So nothing to test yet.

Sorry, my bad.

qsniyg commented 5 years ago

No worries, I'm just waiting until I manage to finish winevfs before working on this :)

qsniyg commented 5 years ago

This appears to cause issues when running FNIS. Running it with pure Skyrim seems to work however.

Perhaps a better solution would be to actually create blank files

qsniyg commented 4 years ago

An actual solution is to use this mod: https://www.nexusmods.com/skyrim/mods/92725?tab=files