Are you using draw_quad to perfomt this action?
draw_quad is (like all other _draw functions) very computing heavy!