Changes between Version 3 and Version 4 of PerformanceAndOptimization
- Timestamp:
- 2012-01-20 11:51:56 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PerformanceAndOptimization
v3 v4 10 10 - The Skidmarks are generated as a single mesh containing all the visible skidmarks for the scene (_Hierarchy: World > Skidmarks_). Each time a new skidmark is generated, the entire mesh is disposed and re-generated. Note that this is the skidmarks script from the Unity's Car Tutorial with a few minor adjustments. You can adjust the maximum mesh size for the skidmarks with the property __MaxMarks__. 11 11 - The smoke is just a particle emmiter (_Hierarchy: World > Skidmarks > SkidSmoke_), so it's up to Unity's particle system. Particles are generated and disposed as they go through their life cycle. You can adjust the number of particles with the properties __MinEmission__ and __MaxEmission__, and their duration in seconds with __MinEnery__ and __MaxEnergy__. 12 13 [CarVisuals](wiki:CarVisuals) offers two flags __disableRaycast__ and __disableWheelVisuals__ which can be used on vehicles parked, computer-controlled, or outside the visual range. Note that _disableWheelVisuals_ also affects the audio, as it depends on wheel's rotation rate. 12 14 13 15 ## Optimizing the friction curves