Search Unity

Animation.Sample() spike on profile

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

  1. jlevel

    jlevel

    Joined:
    Jan 23, 2012
    Posts:
    20
    Hello,

    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?

    Thanks!


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