Docs / Reference / Content formats
Textures on the GPU - unit mc_texMan
DDS files with DXT1-DXT5 data (and DX10 BC1-BC3) go to a GPU that takes block formats (every Apple silicon Mac does) as they are: sRGB BC1/BC2/BC3 with the file's own mip chain (the header's mip count; a partial chain is kept as it is), or, for a file without one, with levels made the way D3DX makes them - level 0 decoded, filtered in RGBA (here in linear light, like the RGBA path's GPU blits) and compressed again;
level 0 stays the file's own. A DXT1 block with c0 <= c1 using index 3 is transparent black, and a DXT1 file with such a block counts as having alpha (the reflection-mask rule below).
Uncompressed files (BMP, TGA, JPG, PNG, raw DDS) are compressed on loading, to BC1 when they have no alpha (or alpha 255 everywhere), else BC3 (the alpha is a reflection mask, a cut-out or a blend), when the result is close: luma-weighted colour PSNR at least 33 dB and alpha PSNR at least 30 dB.
Noisy cobbles and asphalt (27-30 dB, about one BMP in eleven on Ahlheim) stay RGBA.
Block formats need sides that are multiples of four: a picture whose sides are not (the 2550² Ahlheim repaints, 771×1024 display pictures) is resampled to the nearest multiple of four with a Catmull-Rom filter that keeps the texel centres where they were in texture space; pictures with a side under 128 texels, or under 64² texels in all, stay RGBA.
- A tile's own pictures (the
.map.LM.bmplight map, the roads' cut, the ground paint masks) keep their single level; a mask of nothing but 0 and 255 is 1-bit BC1 (only its alpha is read), a soft one BC3. - Text and script textures and render targets stay RGBA. Scenery
[texttexture]pictures are shared by what they show (font, text, size, colour). - A picture the thread that draws has to read itself (a car of the random traffic, a roller-blind picture) goes up as RGBA with its chain made on the GPU, as before, and is compressed on a worker and swapped in afterwards.
options.cfg:[texture]has two values (0 and 1 in the stock file), taken to be the resolution reduction and the compression switch of the options dialog (not verified);[texmemlimit](401.0 in the stock file) is the texture memory in MB above which OMSI lowers the resolution of distant textures. openOMSI's own keys aretexture_compression=(on by default) andvideo_memory=(MB for everything the game holds on the card, not the textures alone; nine tenths of a discrete card's memory when unset).[texmemlimit]and openOMSI's oldtexture_memory=were texture budgets: they are not imported and the launcher dropstexture_memory=when it writes the file.OMSI_NO_BC=1uploads everything as RGBA,OMSI_NO_TEXCOMPRESS=1keeps DXT files as blocks and the rest RGBA.
Something wrong or missing? Fix it on GitHub or open an issue.