[Cuis-dev] VectorGraphics and Morph
Hilaire Fernandes
hilaire at drgeo.eu
Fri Jun 19 07:59:34 PDT 2020
In DrGeo canvas (with Pharo's cairo canvas), I don't use cached forms,
the whole canvas is top down re-draw when marked dirty. Brutal but a
long time ago I discovered that in this specific situation it was much
faster rather than Morph update mechanism based on dependencies.
In some DrGeo canvas you can have a lot math items (models). Each model
is rendered as a morph in the canvas, it eases the debugging as you can
inspect a faulty item with the help of the halo.
Not sure it is the right way to go for a more general approach, but a
dedicated PasteupMorph will clarify how ones can write a small
interactive application.
Not sure I was clear.
Le 19/06/2020 à 16:42, Juan Vuletich a écrit :
>
> You mean making your caching strategy part of the framework? Sounds
> like a good idea, and not too hard to do (you already did the work).
> Still, Morphs would need a message to invalidate the cached Form and
> redraw it again with VectorCanvas, right? Right now, you are caching 2
> Forms, but a genera framework solution should allow easily
> invalidating the cached form without needing to know how many variants
> could exist, and what triggers the change.
>
> This is getting really interesting. Let's move it forward!
--
GNU Dr. Geo
http://drgeo.eu
https://pouet.chapril.org/@hilaire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200619/7ce4a6ca/attachment.htm>
More information about the Cuis-dev
mailing list