On 28 March 2013 12:05, Tristan Bourgois <[email protected]> wrote: > Hi! > > I try to optimize the graphic framework I'm porting. > I have good performance but I have some problem to reDraw the morph of my > view. > > When I reDraw my morph I use 'invalidRect:' with the bound of the part > I want to reDraw but every step my morph is entirely reDraw. > > Does I have to use another method? Or someone can explain me how pharo > manage the repaint of morph? > The thing you looking for called clipping. Usually (and if possible) morph should try and detect what parts of his drawing needs to be updated and update only minimum part covered by clipping region. But that implies some internal knowledge about morph's geometry etc.. and that's why a default implementation simply (re)draws everything.
> Thanks :) > > I will ask today if I can make a video of my work because is very > impressive of what we can do on Pharo with the framework! > Please do. > And if the reDraw is functional we certainly have the same performance > with Pharo! > Come to see me and we will look how we can optimize it :) > So good news :) > > Tristan > -- Best regards, Igor Stasenko.
