At game start this variable gives the maximum texture size the
3D card can display.
On most 3D cards this is 2048 or 4096.
Old 3D cards
have a maximum texture size of 1024.
All textures will be
automatically 'shrunk' to the size
given by this variable.
- 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 leads
to a crash error message.
d3d_texlimit = 256; // enforce 256 pixels max texture size