Search Unity

Slowdown in GUI.DrawTexture with null texture

Discussion in 'Immediate Mode GUI (IMGUI)' started by jvo3dc, Jul 31, 2014.

  1. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    I noticed an intense slow down when calling GUI.DrawTexture with null as texture today. It runs as expected in the editor, but very slow when published as windows standalone. I understand you're not supposed to call GUI.DrawTexture with null as texture, but it's still surprising if the published behaviour is this much different from the editor behaviour.

    Unity 4.5.1f3 by the way.