On Thu, Apr 26, 2012 at 1:49 PM, Nathan Biagini wrote:
> i dunno if i can do more "optimized" as a drawing line function...
I see a moderate speed-up when replacing:
asf[x][y] = 255
with:
asf[x,y] = 255
Which avoids doing two layers of Python indexing for each pixel.
Still, it doesn't
Nathan Biagini wrote:
When i
come closer to a wall (when the lines i draw become bigger), it starts
to be a bit laggy. So i think it's all about the draw_verline function
that just iters vertically in the array and set the pixels, i dunno if i
can do more "optimized" as a drawing line function
Hi.
I have recently started to write a ray casting engine with Pygame and i'm
at the very early stage of the engine but i already have performance
issues. I use the surfarray module to do all the drawing (actually, i only
want to draw lines) but i have issues about performances. When i come
closer