Code practices § Do not Use lambda § Do not Use Linq § Always use Array instead of List if possible § Always use for loop if possible § Always strongly type Lection 6. Advanced Scripting & Performance optimizations the variables § Bulk operations in loop of IEnumerator § Always destroy GOs that are not in use § It’s ok to call GC in a moment where it’s not likely to lag.
Lection 6. Advanced Scripting & performance optimizations Useful links § http: //docs. unity 3 d. com/Manual/Log. Files. html § http: //docs. unity 3 d. com/Manual/Platform. Depen dent. Compilation. html § http: //docs. unity 3 d. com/Script. Reference/Menu. It em. html § http: //docs. unity 3 d. com/Script. Reference/Asset. Bu ndle. html § http: //docs. unity 3 d. com/412/Documentation/Scri pt. Reference/index. Performance_Optimization. ht ml