← Back to team overview

kicad-developers team mailing list archive

Re: Performance profiling

 

On Mon, 9 Mar 2009, jean-pierre charras - INPG wrote:

For background, how about dropping exactness in screen measures and always
fit the grid to even pixel count? Then wxBrush coud be used for drawing
and the would probably speed up alot compared to single pixel draw call.

-Vesa

The grid is a reference, so i think the dots positions must be exact.
Perhaps creates a grid line in memory and using a blit function could be
faster; (to do)

I meant zoom factor exactness, so that every grid increment is even in pixels. Otherwise blitting needs fractional calculation and rounding too for line position. It would be so nice if wx had same kind of drawing primitive buffers available like in OpenGL vertex arrays and vertex buffer objects.

It seems wxGC has something like that:
http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3543798

-Vesa






Follow ups

References