Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Q: Any faster image copying than with "XPutImage" ?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Mattis  
View profile  
 More options Oct 7 1995, 3:00 am
Newsgroups: comp.windows.x
From: p...@soda.CSUA.Berkeley.EDU (Peter Mattis)
Date: 1995/10/07
Subject: Re: Q: Any faster image copying than with "XPutImage" ?

>I am using XFree3.1.2 on a Pentium PC with an accelerated Diamond Stealth V64
>video card (PCI); mainly in 16bpp TrueColor mode.

>My problem is that the "XPutImage" function is rather slow, even if the
>GC is set to "GXcopy" which means that the image could be written directly
>into the video ram. I use the same format as the server does,
>ie 16bpp ZImage, so no transformation has to take place.

The reason it is so slow is that every time an XPutImage takes place
Xlib as to copy the image data over its connection to the X-server.
The solution is easy: use XShmPutImage, XShmCreateImage and XShmAttach
to use shared memory images.

Hint: I know this is possible using XFree86. I've done it. As an example
of the speed you can get: I can get 45 fps at 640x480 at 16bpp on my
p5-133 w/ Matrox Millenium under Accelerated-X. That includes "erasing"
the image each frame. Doing straight blits that goes up to about 60fps.

Peter Mattis


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google