0ad/source
wraitii cdd75deafb XMB Improvements, parse JS into XMB, make strings more efficient.
XMB format is bumped to 4, invalidating all cached files. The
differences are:
 - element/attribute names are stored after the elements themselves, and
not before. This allows writing XMB data in one pass instead of two.
 - names themselves becomes offsets (instead of arbitrary integers),
making getting the string from the int name much more efficient.

XMBFile is renamed to XMBData to clarify that it does not, in fact,
refer to a file on disk.

XMBData::GetElementString is also changed to return a const char*, thus
not creating an std::string. A string_view version is added where
convenient.

The XML->XMB and JS->XMB conversion functions and the corresponding
storage are moved to `ps/XMB`, since that format doesn't particularly
relate to XML. CXeromyces becomes lighter and more focused as a result.
The XML->XMB conversion also benefits from the above streamlining.

Note that in a few cases, string_view gets printed to CLogger via
data(), which is generally not legal, but we know that the strings are
null-terminated here. Our libfmt (version 4) doesn't support
string_view, that would be v5.

Differential Revision: https://code.wildfiregames.com/D3909
This was SVN commit r25375.
2021-05-04 13:02:34 +00:00
..
collada Refactors smart pointers creation, reduces code duplication and improves exception safety. 2021-02-13 23:53:40 +00:00
graphics XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +00:00
gui XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +00:00
i18n Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
lib Reduces number of allocations during error message formatting. 2021-04-22 06:53:03 +00:00
lobby Fix some warnings. 2021-05-02 15:45:40 +00:00
maths Further reduce usage of TERRAIN_TILE_SIZE in non-terrain components 2021-05-02 17:40:00 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
pch Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
ps XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +00:00
renderer Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
rlinterface ParamNode: switch to utf8, ToXML -> ToXMLString, test tweak, PCH tweak 2021-04-11 09:23:10 +00:00
scriptinterface Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
simulation2 XMB Improvements, parse JS into XMB, make strings more efficient. 2021-05-04 13:02:34 +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 Fix enabling / disabling shadows in the actor viewer. 2021-04-28 11:09:16 +00:00
main.cpp Make real directory paths on the VFS predictable (retry) 2021-03-23 12:46:59 +00:00
test_setup.cpp Introduce C++ templates replacements for DEFINE_INTERFACE_X and RegisterFunction macros 2021-03-01 20:52:24 +00:00