def move(vertices, vectors, int size):
cdef float[::1] _verts = vertices
cdef float* verts = &_verts[0]
cdef array.array[float] _vecs = vectors
vecs = _vecs.data.as_floats
cdef size_t l = len(vertices), n, v=0
cdef float x, y, x1, y1,v0, v1
with nogil:
for n in range(0, l, 8):
v0 = vecs[v]
v1 = vecs[v+1]
x = (verts[n]+v0) % 960.0
y = (verts[n+1]+v1) % 540.0
x1 = x+size
y1 = y+size
verts[n:n+8] = [x, y, x1, y, x1, y1, x, y1]
v+=2