copypastedcode bc noidea how tomerge themin one casehavingvirtualfunctionswithoutoverwritingobjectpoolingwhoGetComponent()in Updatepassingstructsby valueboxingvalue-typedvariablesusingexpensivealgorithms bc*sorry but it'seasy and imstupid*gameObject.SendMessage();ComponentGetComponent(string)>>>ComponentGetComponent(Typetype)frameratedroppedto 20 fpsRaycastRaycastRaycastRaycastRaycastAllEmptyUpdate()or Start()NeverusedProfilerNever heardof Memoryprofiler orframedebuggerUnitycrashednotcachinganythingcopypastedcode bc noidea how tomerge themin one casehavingvirtualfunctionswithoutoverwritingobjectpoolingwhoGetComponent()in Updatepassingstructsby valueboxingvalue-typedvariablesusingexpensivealgorithms bc*sorry but it'seasy and imstupid*gameObject.SendMessage();ComponentGetComponent(string)>>>ComponentGetComponent(Typetype)frameratedroppedto 20 fpsRaycastRaycastRaycastRaycastRaycastAllEmptyUpdate()or Start()NeverusedProfilerNever heardof Memoryprofiler orframedebuggerUnitycrashednotcachinganything

Optimization who - Call List

(Print) Use this randomly generated list as your call list when playing the game. There is no need to say the BINGO column name. Place some kind of mark (like an X, a checkmark, a dot, tally mark, etc) on each cell as you announce it, to keep track. You can also cut out each item, place them in a bag and pull words from the bag.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  1. copypasted code bc no idea how to merge them in one case
  2. having virtual functions without overwriting
  3. object pooling who
  4. GetComponent() in Update
  5. passing structs by value
  6. boxing value-typed variables
  7. using expensive algorithms bc *sorry but it's easy and im stupid*
  8. gameObject. SendMessage();
  9. Component GetComponent (string)>>> Component GetComponent(Type type)
  10. framerate dropped to 20 fps
  11. Raycast Raycast Raycast Raycast RaycastAll
  12. Empty Update() or Start()
  13. Never used Profiler
  14. Never heard of Memory profiler or frame debugger
  15. Unity crashed
  16. not caching anything