d3d_texfree

Indicates the amount of texture memory still available on the 3D card, in KB. Is also displayed in the statistics panel. Can be inaccurate, depending on the 3D card driver. The real amount available for 3D textures is less than the memory on the 3D card, due to screen and other buffers. The video memory available at game start is over 100 MB on new 3D cards, but 30 MB or less on old cards (TNT2).

Type:

var, read-only

Example:

if (d3d_texfree < 40000) { 
  game_exit("Not enough video memory!"); // exit wenn weniger als 40 MB
}

See also :

level_load