[cairo] Scrolling/Panning Demo -- howto increase speed

Stefan Salewski mail at ssalewski.de
Sat Dec 11 10:00:58 PST 2010


On Sat, 2010-12-11 at 18:45 +0100, Tobias Hoffmann wrote:
> Stefan Salewski wrote:
> > As expected scrolling and panning is not really fast, [...]
> >
> > Is there an not too complicated way to increase performance
> On C/C++ I have used Gdk::Window::scroll(dx,dy) which moves the already 
> visible portion of the screen and invalidates (triggers an expose) for 
> the remaining parts. And don't forget about 
> Gdk::Window::set_debug_updates()  which nicely visualizes this.
> 
>   Tobias

Yes -- that seems to be what I was looking for.
Indeed I missed that function, I was only looking for cairo related
functions. But of course, it should be fine to let Gdk do the scrolling
and use cairo only for painting the damaged areas.

Thanks,

Stefan Salewski




More information about the cairo mailing list