sys_memory
Virtual memory currently allocated by the engine for nexus,
level, entities, and engine objects, in
MB.
Range:
0 .. 1000 GB
Type:
var, read-only
Remarks:
-
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
panel.
-
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.
Example (lite-C):
if (sys_memory > 300000)
error("Game needs more than 300 MB - that's not good. Remove some stuff!");
See also:
-nx, nexus,
sys_malloc,
statistics
► latest
version online