|This page or section is being initially created, or is in the process of an expansion or major restructuring. You are welcome to assist in its construction by.
There are several optimisations that should be done to a vehicle mod in order to improve in-game performance. This can have a significant impact on framerate, especially in a full grid of 40 cars on track.
- Use fewer triangles / points on the model where possible. You can achieve good looking results even with a less detailed model than the hard limit of 65536 triangles for LOD1 and 8192 for LOD2. For LOD2 the recommended target is around 1000 triangles.
- Combine multiple textures of the same subobject onto a single texture page for efficiency. For example, if you have 11 textures with a resolution of 128x128 each, that are all used on the steering wheel object, you could combine them into a single 512x512 texture with a room for 5 more. However, do not combine all the existing textures on a single page, as it brings no benefit, just huge texture sizes.
- Optimize wheel objects by sharing textures between multiple alpha cutouts to reduce texture switching.
- For closed cockpit cars, set "Concealed driver" to YES.
- Convert the hub object into the spoke object to reduce moving subobjects.
- Eliminate the use of Tree Edge Alpha (TEA) cutouts for vehicles, as it is not officially supported and adds unnecessary materials.
For reference, you can load an existing LFS car in the editor and inspect how it is modelled and configured. A good example is the RB4 GT.