d3d_texlimit
At game start this variable gives the maximum texture size the
3D card can display. On normal 3D cards this is 1024 or 2048. Old 3D cards
like Voodoo have a maximum texture size of 256. All textures will be
automatically 'shrunk' to the size
given by this variable.
Range:
8 .. 2048
Type:
var, redefine
Remarks:
- For allowing huge levels to run smoothly on system with very limited
texture memory, d3d_texlimit can be set manually to
a lower value. For instance after setting it at 128, all textures
that are bigger than 128x128 will be reduced
in size upon loading, but the smaller ones keep their original quality.
This way when setting if before level loading, the overall texture
memory needed for a level can be reduced by over 50%.
- When setting this variable to a low value, take care about all
functions that rely on texture size (f.i. writing into bitmaps by
pixel functions). Exceeding the texture size on writing can lead
to an
engine crash.
Example:
var d3d_texlimit = 256; // 256 pixels max texture size
See also:
d3d_texfree