No subject
Tue Aug 10 03:28:24 PDT 2010
e<br>
wise it's slightly lagging. Although I have implemented<br>
a custom cache implementation to make it as fast as possible but still I ne=
ed<br>
some tips to improve it.<br>
<br>
Once a node is drawn it's cached as bitmap and instead of calling entir=
e drawing<br>
operations, I am drawing it's bitmap.<br>
<br>
<br>
<br>
The main area where I need speed-ups are related to view port navigation:<b=
r>
<br>
1. When you select a node and move, you have to repeatedly call the main &#=
39;draw'<br>
to update the canvas and it's drawing all the nodes.<br>
<br>
2. When you zoom-in or zoom-out (scaling DCs), you have to re-cache the nod=
e.<br>
<br>
3. When you scroll/pan the canvas you have to draw all the nodes for every<=
br>
mouse-move call. This is much slower if you have already zoomed-in.(DC'=
s scale<br>
is 5 or greater)<br>
<br>
Overall, how do you take out most of cairo/pycairo when you are creating a<=
br>
frame-work similar to the screen shot above?<br>
<br>
Shall I try newer version? (if there are any performance based improvements=
<br>
rather then functionality)<br>
<br>
Cheers<br>
<br>
Prashant<br>
<font color=3D"#888888"><br>
<br>
<br>
--<br>
cairo mailing list<br>
<a href=3D"mailto:cairo at cairographics.org">cairo at cairographics.org</a><br>
<a href=3D"http://lists.cairographics.org/mailman/listinfo/cairo" target=3D=
"_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</font></blockquote></div><br></div></div></div>
--00163646bf5e6f702e048d7620a2--
More information about the cairo
mailing list