← Back to team overview

kicad-developers team mailing list archive

Re: Performance profiling


Vesa Solonen a écrit :
I just wanted to point out that sysprof by Søren Sandmann seems very useful for finding bottlenecs in code. It is available in Ubuntu repos too. Any experiences or comments from anyone? Zoom and redraw speedups are something I'm aiming at. Pcbnew seems to spend most of the time in ZONE_CONTAINER::DrawFilledArea, TRACK::Draw and MODULE::Draw (19/17/14 out of 54). Background dot grid uses quite a lot of callbacks too.

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.


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)

Jean-Pierre CHARRAS
Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex

Recherche :
Grenoble Image Parole Signal Automatique (GIPSA - INPG)
Grenoble France

Follow ups