use memcpy instead of loop to update vertex attrib