What is LOD (level of detail)?
LOD (level of detail) is the technique of storing several versions of the same 3D model, each with fewer polygons than the last, and showing a simpler one the further the object is from the camera. A car that fills the screen is drawn with its full mesh; the same car two blocks away is drawn with a fraction of the triangles and looks identical at that size. GTA V vehicles carry their LODs inside the .yft file, and the switch distances are set per vehicle in vehicles.meta.
How vehicle LODs work in GTA V
A vehicle's drawable can hold up to four levels of detail, named high, medium, low and very low. In addition, the most detailed mesh of all is stored in a separate file, mycar_hi.yft, which is only loaded when the vehicle is close to the camera. The plain mycar.yft covers everything further away.
As a vehicle moves away, the game steps down through the levels. Each step removes detail that can no longer be seen at that size: first the interior stitching and engine bay, then the interior as a whole, then separate wheels and mirrors, until the last level is little more than a coloured box with wheels.
The same idea exists for textures, where smaller copies called mipmaps are used at distance.
Have the resource on disk already? The Resource Inspector checks its manifest, stream files, textures and metas in your browser. Open the Resource Inspector
Where the distances are set
The switch distances are per vehicle, in the lodDistances tag of vehicles.meta. The values are distances in metres at which the game moves to the next level.
<lodDistances content="float_array">
15.000000
30.000000
60.000000
120.000000
500.000000
500.000000
</lodDistances>A related tag, HDTextureDist, sets the distance inside which the high-resolution +hi texture dictionary is used. Raising these numbers makes a car look detailed from further away, at the price of more rendering work and memory for everyone who can see it.
Why missing LODs hurt a server
Many vehicles on gta5-mods.com are converted from racing games with one very dense mesh and no simplified versions. Some authors copy the full mesh into every LOD slot so the car never visibly changes. In single player, with one such car on screen, that is rarely a problem. On a server it adds up:
- Every copy of the car in view is drawn at full polygon count, regardless of distance. A parking lot of them cuts frame rates for everyone nearby.
- The full model has to stay in memory for as long as the car is in view at all, adding to pressure on the streaming budget.
- Files are larger, so the .yft is more likely to pass the 16 MiB oversized asset mark.
How to check a mod and what to do about it
- Read the mod description. Authors who build LODs usually say so; a polygon count in the hundreds of thousands with no mention of LODs is a warning sign.
- Compare file sizes. If
mycar.yftis as large asmycar_hi.yft, the lower levels are probably copies of the full mesh. - Watch it in game. Spawn the car, back away and look for the mesh simplifying. A car that keeps its brake calipers at a hundred metres has no real LODs.
- Prefer optimized mods. For a busy server, a well-made car with proper LODs is worth more than a more detailed one without. The best vehicles list favours mods built this way.
Creating missing LODs means editing the model in a 3D tool such as ZModeler or Blender with Sollumz and exporting it again; there is no meta setting that generates them. Reducing texture sizes is a separate optimization that helps whether or not the model has LODs.
Frequently asked questions
What does LOD mean in GTA 5 mods?
LOD stands for level of detail. It refers to the simplified versions of a model that the game shows at distance instead of the full-detail mesh, to save rendering work and memory.
Can I add LODs to a car without them?
Only by editing the model in a 3D tool and exporting it again. LODs are meshes stored inside the .yft file, so they cannot be created by changing a meta file.
Do LODs reduce texture memory?
Not directly. LODs reduce polygon count. Texture memory is reduced by lower texture resolution, compression and mipmaps.
Tools for this
Related guides
Related terms
More in Streaming & Optimization: DXT / BC Texture Compression
Still need the car as a FiveM resource?
Paste a gta5-mods.com vehicle link and get a FiveM-ready resource with the manifest and metas in place. 3 free conversions, no signup.
- 3 conversions free, no account needed
- 2 more free if you leave an email
- After that: $15 once for unlimited conversions and the Pro tools. No subscription, 14-day refund policy