Virtual memory currently allocated by the engine for nexus,
level, entities, and engine objects, in
0 .. 1000 GB
This variable is internally calculated by summing up all memory areas allocated by the engine at runtime. It does not reflect otherwise consumed memory, for instance the process environment and stack, the texture memory on the 3D card, or memory allocated by DLL plugins or scripts using other functions than sys_malloc.
This variable is only available in the development version, not in the release version.
It is displayed in the statistics
Prior to version 8.11, variables counted memory in KB, not MB. This behavior can be restored by setting the compatibility variable to below 14.
if (sys_memory > 300000)
error("Game needs more than 300 MB - that's not good. Remove some stuff!");