Re: How to shift surface?
- Date: Mon, 11 Jun 2018 16:11:49 +0200
- From: Stefan Salewski <mail@xxxxxxxxxxxx>
- Subject: Re: How to shift surface?
On Mon, 2018-06-11 at 08:29 +0100, Göran Hasse wrote:
> I am trying to write a gtk + Cairo application that mimics the
> animation in
> wikipedias sine graph.
There was posted an example some time ago -- in multiple versions.
First one did only clear and redraw -- which gave high CPU load. An
improved version of Uli Schlachter used shifting of display to reduce
load. A Nim version of first simple redraw is available here:
Various C codes you may find in this thread, I think first Uli
Schlachter post has a link to the most advanced C version.
gtk-list mailing list