debugging slow animations