Search Unity

Garbage Collector Causing Performance Issue

Discussion in 'Getting Started' started by LumoKvin, Dec 4, 2019.

  1. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I have a level with 10 rooms. When the camera is facing the direction of the other rooms, the GC goes crazy. I don't have anything that is being destroyed. I don't have any particles or effects. This is causing the performance to go from 250fps to 100fps (on mobile it is 60fps to 15fps).

    Is there something I can do about this?

    This is what the camera sees. It just a brick wall. Behind the wall is the other rooms:
    Capture2.PNG

    As you can see when I adjust the "Far Clipping Plane" of the camera, there is a significant performance difference.
    Capture4.PNG
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,190
    How about scripts?
     
    JoeStrout likes this.
  3. LumoKvin

    LumoKvin

    Joined:
    Sep 28, 2019
    Posts:
    195
    I don't think this is being caused by any scripts.