Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Expensive Gizmos?

Discussion in 'Editor & General Support' started by smitchell, Sep 4, 2014.

  1. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    Hey,

    The game we're making right now uses gizmos allot; Gizmos are awesome for showing things that can't be seen like waypoints etc so we use them allot. But when I run the profiler I see it takes between 2 - 5 % of CPU usage, which I guess isn't too much but I was wondering do gizmos still get called when on a device?

    Thanks
     
  2. MrBrainMelter

    MrBrainMelter

    Joined:
    Aug 26, 2014
    Posts:
    233
    I don't think so ... at least in normal release mode. I'm surprised they show up in the profiler in the editor.
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    OnDrawGizmos/OnDrawGizmosSelected are not called by the engine in builds.
     
  4. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    thanks for the clarification :)