Remove VFS cache, because it is less effective and less efficient than the OS cache (and partially redundant with higher level application caches).

Patch By: Sandarac
Discussed with: Philip, echotangoecho, Bezerra
Fixes #4072.
Differential Revision: https://code.wildfiregames.com/D587
This was SVN commit r20639.
This commit is contained in:
elexis
2017-12-10 17:33:03 +00:00
parent 3bfe10f63f
commit 89e339dd16
22 changed files with 42 additions and 601 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ JS::Value Mod::GetAvailableMods(const ScriptInterface& scriptInterface)
// Sort modDirs so that we can do a fast lookup below
std::sort(modDirs.begin(), modDirs.end());
PIVFS vfs = CreateVfs(1); // No cache needed; TODO but 0 crashes
PIVFS vfs = CreateVfs();
for (DirectoryNames::iterator iter = modDirs.begin(); iter != modDirs.end(); ++iter)
{