[LAD] memory leak assistance

fons at kokkinizita.net fons at kokkinizita.net
Sat Jan 2 14:34:49 UTC 2010


On Thu, Dec 31, 2009 at 12:39:06AM +1100, Patrick Shirkey wrote:
> 
> On 12/30/2009 11:57 PM, Paul Davis wrote:
>
> > ardour's Gtkmm2ext::FastMeter optimizes even more. we compute the
> > difference between the last drawn instance of the meter and the new
> > appearance and only draw that the delta. this means that we often get
> > away with drawing just a single row of pixels.
> >
> > http://subversion.ardour.org/svn/ardour2/branches/2.0-ongoing/libs/gtkmm2ext/fastmeter.cc
> >
> > see the vertical_expose() and horizontal_expose() methods. Note that
> > we are also using precomputed pixbufs and just blitting them.
> >    

Same for jkmeter and the meters used in AmbDec and TetraProc.

> I am taking a slightly different approach to the visual aspect as I have 
> added a glassy bubble overlay and the notches sit on top of the overlay. 
> The meters are redrawing under the overlay to give the effect of being 
> inside a glassy tube.

So while manufacturers of real HW meters try to do their best to
avoid reflections, you are adding them ? :-)
 
> So basically I have to redraw the whole thing each time unless I change 
> the code to use the above method.

No, unless the 'glass' is blurring the picture, all you need is still
two precomputed images.
 
Ciao,

-- 
FA

Wie der Mond heute Nacht aussieht !
Ist es nicht ein seltsames Bild ?



More information about the Linux-audio-dev mailing list