Level of detail

From Valve Developer Community
Revision as of 03:19, 24 November 2024 by Kr0tchet (talk | contribs) (LOD appears to be disabled in HL2 since 20th anniversary.)
Jump to navigation Jump to search
English (en)Español (es)中文 (zh)Translate (Translate)

Level of Detail (LOD) is the principle of having lower-detail versions of models in memory and switching to them when the object is small/distant. This saves a lot of unneeded processing power at the cost of a moderate memory/disk size increase.

Model LODs change instantly. Be careful that your LODs do not create visual noise when changing, it can be distracting. An example of this can be seen on some tree props in Water Hazard Half-Life 2.

In Half-Life 2, since 20th anniversary update, LOD appears to be disabled with the command r_lod set to "0", if running on DirectX 9 level or higher.[1]

Warning.pngWarning:Counter-Strike: Global Offensive Counter-Strike: Global Offensive does not support LODs at all, or it is possibly broken due to updates[confirm].

See also

References

References
1. According to 🖿bin\dxsupport.cfg..

Stub

This article or section is a stub. You can help by expanding it.