[cairo] svgspacewar patch for cairo0.5.0, gtk2.7.0
Nigel Tao
nigel.tao at myrealbox.com
Tue Jun 21 19:45:05 PDT 2005
On Tue, 2005-06-21 at 12:40 -0700, Carl Worth wrote:
> On Tue, 21 Jun 2005 09:34:25 -0700, Carl Worth wrote:
> > For what it's worth I notice that svgspacewar runs at about 400 frames
> > per second at its default size. Then, if I scale the window at all, it
> > drops down to about 5 fps.
>
> I found an unnecessary cairo_rectangle;cairo_clip; that was in place
> for all the drawing in svgspacewar. When scaling the window this was
> obviously not going through the clipping fast path.
Removing the clip does change the behavior when the window is re-sized
to an aspect other than 4:3 - by removing the clip, the out-of-play
region is the space background color (dark, dark purple) rather than a
gray (gtk default background color?), and things like the ship doesn't
get clipped when it's half out-of-play.
Having said that, I think I like the sans-clip-rectangle look (the
current CVS version) better.
Finally, another svgspacewar patch, since I forgot to port my
save/fill/restore/stroke code to fill_preserve/stroke.
Nigel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svgspacewar_stroking.patch
Type: text/x-patch
Size: 2204 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050622/a52c58b1/svgspacewar_stroking.bin
More information about the cairo
mailing list