Re: Moving a pixmap "sideways"
- From: Charles Iliya Krempeaux <tnt linux ca>
- To: Havoc Pennington <hp redhat com>
- Cc: G Hasse <gh raditex se>, gtk-app-devel-list gnome org
- Subject: Re: Moving a pixmap "sideways"
- Date: 03 Dec 2001 19:14:04 -0800
Hello,
On Mon, 2001-12-03 at 13:04, Havoc Pennington wrote:
G Hasse <gh raditex se> writes:
This works nice and is flickerfree BUT!!! The performance is
lousy! Is there a way just to move the pixmap (copy it in
the X-server) and just redraw the begining every time?
You can copy the existing drawing area contents with
gdk_window_copy_area(). Performance really shouldn't be that bad
though... there may be something else that's slow, other than copying
the new pixmap.
I also depends on how big you pixmap is too. If the pixmap is too
big you can bring you application to a crawl. (At least that's been
my experience with doing animations, with stuff like SDL anyways.)
See ya
Charles Iliya Krempeaux
tnt @ linux.ca
ckrempea @ alumni.sfu.ca
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]