1
0
forked from 0ad/0ad
0ad/source
wraitii e908733220 Speed up GetAvailableMods for archives.
Refs 64bfa089af and 44ec2e324e

When a .zip file is encountered by the VFS population, it reads the info
for all files in the archives. This is quite slow for the public archive
(400-500ms on my computer), which means calling GetEngineInfo()
repeatedly is impossible.

By only opening the external mod.json, we skip most of the work. The
archive can still be opened if needed as fallback.


Differential Revision: https://code.wildfiregames.com/D3216
This was SVN commit r25446.
2021-05-16 13:50:05 +00:00
..
collada Refactors smart pointers creation, reduces code duplication and improves exception safety. 2021-02-13 23:53:40 +00:00
graphics Removes unused and outdated includes, replaces some includes by forward declarations. 2021-05-15 17:27:01 +00:00
gui Removes unused and outdated includes, replaces some includes by forward declarations. 2021-05-15 17:27:01 +00:00
i18n Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
lib Speed up GetAvailableMods for archives. 2021-05-16 13:50:05 +00:00
lobby Fixes broken PCH after wraitii commits (4f972bc623, 0f60bf3a97) and Itms (833c9f108c). 2021-05-15 14:50:24 +00:00
maths Fixes a bounding box projection to an incorrect camera causes the red water bug. 2021-05-15 13:33:36 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
pch Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
ps Speed up GetAvailableMods for archives. 2021-05-16 13:50:05 +00:00
renderer Removes unused and outdated includes, replaces some includes by forward declarations. 2021-05-15 17:27:01 +00:00
rlinterface Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
scriptinterface Fixes broken PCH after wraitii commits (4f972bc623, 0f60bf3a97) and Itms (833c9f108c). 2021-05-15 14:50:24 +00:00
simulation2 Removes unused and outdated includes, replaces some includes by forward declarations. 2021-05-15 17:27:01 +00:00
soundmanager XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +00:00
third_party Optimization for include resolving in PreprocessorWrapper. 2021-01-20 23:05:15 +00:00
tools Removes unused and outdated includes, replaces some includes by forward declarations. 2021-05-15 17:27:01 +00:00
main.cpp Speed up GetAvailableMods for archives. 2021-05-16 13:50:05 +00:00
test_setup.cpp Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00