Difference between revisions of "LFS Editor/Guides/Optimisations"

From LFS Manual
Jump to navigationJump to search
m
m
Line 16: Line 16:
 
* [https://www.lfs.net/forum/post/2075672#post2075672 Scawen's optimization tips for the N.400S GT4 vehicle mod (21 Jan 2024, LFS Forum)]
 
* [https://www.lfs.net/forum/post/2075672#post2075672 Scawen's optimization tips for the N.400S GT4 vehicle mod (21 Jan 2024, LFS Forum)]
  
[[Category:LFS Editor Guides{{SUBPAGENAME}}]]
+
[[Category:LFS Editor Guides|{{SUBPAGENAME}}]]

Revision as of 21:40, 7 February 2024

TemplateIconUnderConstruction.png 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 editing it.
LFS Editor
Vehicle Mods

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.

References