On Tue, 18 Sep 2001 [EMAIL PROTECTED] wrote:
> When doing several test with Java2D I came across some questions
> concerning the performance of an X-Server.
>
> For example I do a drawImage of a RGB image on a Graphics object in
> Java2D. In my opinion that should be a simple blit operation.
> The drawImage takes on a Linux 2.4 with XFree86 4.1.0 about 15 ms.
> On Windows 2000 the same Java code takes about 4 ms.
>
> If I do a x11perf -putimage500 I get about 87/sec.
> And a x11perf -shmput500 gives me 369/sec.
>
> The sizes of the images are almost the same and my question is whether
> the putimage500 and shmputimage500 can be compared to a blit operation?
>
> If yes, could I say that the Java VM is lame?
> Or is this a problem of the X-Server?
shmputimage500 blits from shared memory to the Drawable.
putimage500 blits from non-shared memory to the Drawable by way
of a socket. Which is Java using? If it's not accelerating local
performance by shared memory you can expect the PutImage performance.
If it's using the MIT-SHM extension you can expect XShmPutImage
performance.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert