Search Unity

Does Debug.Log effect performance?

Discussion in 'Scripting' started by derkoi, Jan 7, 2014.

Thread Status:
Not open for further replies.
  1. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,260
    I have AI in my game and I Debug.Log quite a bit when they're making decisions etc there's about 20 AI in the scene at any one time I'm wondering if it's worth disabling the Debug.Logs when running on a mobile device to improve performance?

    Any thoughts?
     
    honor0102 likes this.
  2. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,539
    Absolutely.
     
    honor0102 likes this.
  3. THoeppner

    THoeppner

    Joined:
    Oct 10, 2012
    Posts:
    205
Thread Status:
Not open for further replies.