Debugging a lagging issue in animation