[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.pixelcopy.array_to_surface(Dest, Src) not working



A FORTRAN array should work. The pixelcopy routines do understand array strides.

On 16-12-24 10:25 AM, Russell Jones wrote:

On 24 December 2016 at 17:39, Mikhail V <mikhailwas@xxxxxxxxx <mailto:mikhailwas@xxxxxxxxx>> wrote:

    The problem is however, transpose adds overhead, ca. 10-15%
    performance hit,

Have you played with order='FORTRAN'? See
https://docs.scipy.org/doc/numpy/reference/generated/numpy.isfortran.html