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:

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