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.

Animation.Sample() spike on profile

Discussion in 'Editor & General Support' started by jlevel, Feb 24, 2012.

  1. jlevel


    Jan 23, 2012

    I'm having bad performance (1 second freeze/lag) with the following scenario:

    NPC character with sphere collider and playing idle animation. No rigidbody or another component since I'm not planning to move this character.

    The problem began when camera render this NPC for first time, I see on profile a CPU spike caused by Animation.Sample().

    I'm playing the idle animation by inspector Play automatically option.

    Any idea what is causing this or how to solve it?


    -- Solved: lag was caused from DXT3 textures
    Last edited: Feb 24, 2012