Re: What is more fast GdkDrawable or GdkPixbuf
- From: Olexiy Avramchenko <olexiy ctech cn ua>
- To: Carlos Eduardo Rodrigues Diogenes <cerdiogenes yahoo com br>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: What is more fast GdkDrawable or GdkPixbuf
- Date: Thu, 01 Dec 2005 09:39:07 +0200
Carlos Eduardo Rodrigues Diogenes wrote:
What of these two components are fastest to copy from one to another
(GdkDrawable to GdkDrawable or GkdPixbuf to GdkPixbuf)?
The fastest case depends on your client's hardware (pixbufs) and X
server's hardware (drawables).
GdkPixbuf is stored in client (local RAM) memory, so pixbuf -> pixbuf
copy is like memcpy(). You can easily measure it and result will be near
constant on any specific system.
GdkDrawable is more tricky, it is stored in server (remote, even on
another box, RAM or VRAM) memory, some operations on it can be performed
via hardware and operations are usually asynchronous unless you
explicitly synchronize them.
You can get sane results only for the specific client/server
configuration. You can not assume that these results will be true for
any other case.
What do you want to do ? If you spend much time calculating image and
rarely draw on screen - use pixbufs.
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]