From: Chris Wilson <chris@chris-wilson.co.uk>
To: Guo Tang <guo.tang@sonoartis.com>, intel-gfx@lists.freedesktop.org
Subject: Re: help on graphic performance issue
Date: Wed, 18 Apr 2012 18:18:31 +0100 [thread overview]
Message-ID: <1334769528_20461@CP5-2952> (raw)
In-Reply-To: <CAOF+-itegn1S4xyTN9rcGT+CftzaNT_pbzNCA4WedqejPXg9_g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]
On Wed, 18 Apr 2012 09:46:03 -0700, Guo Tang <guo.tang@sonoartis.com> wrote:
> We have a machine running ubuntu 10.04 (kernel version 2.6.32). The
> application is simple: It has a display area of 640x480 showing image
> at about 30Hz rate.
[snip]
> The application
> drawing is through GTK/Cairo. So not sure whether the problem is
> inside configuration of GTK, Cairo, X or the
> Intel graphic driver.
Simply put, if you profile, you find most of the time is in XPutImage.
Without updating your graphics stack, your best option is to upload the
image data yourself either into an XShmPixmap (though I think your driver
is likely too old to support them) or through XShmPutImage into an
ordinary Pixmap. And then use that pixmap as the source for your Cairo
drawing operations, or directly into place if you don't require
compositing.
Your first step should be to define some performance targets so that you
can judge whether the current setup is an issue or not. And then you
should perform some system profiling so you know where the CPU time is
going and understand the problem better.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2012-04-18 17:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 16:46 help on graphic performance issue Guo Tang
2012-04-18 17:18 ` Chris Wilson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1334769528_20461@CP5-2952 \
--to=chris@chris-wilson.co.uk \
--cc=guo.tang@sonoartis.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox