[Java2d] X11 vs. Win32 Pipeline

Hi there!

I always thought the X11 pipeline is the slowest pipeline arround there, however some funny things I experienced sometimes really bad performance on win32 systems.
Especially alpha-bending seems to be really slow on win32.

Just for interrest - Does anybody have any numbers handy?

lg Clemens

In the latest mustang build they have made available the J2DBench, which is a benchmarking program for Java2D. The actual one they use themselves! You can check it out and get some numbers to play with. There is a posting here how to compile it. I’ve done that and it wan’t hard at all.

Cheers,

I’d be surprised if that was the case… Unless you disable the surface punting mechanism on windows (for example, enabling translucency acceleration in 5.0 has this side effect).

Another thing is that unless you do Toolkit.sync() before taking the measurements, you are not really measuring performance correctly - X11 would just batch the requests, and it can do that rather quickly.

Anyway, Mike is right, try J2DBench (just download mustang source snapshot from mustang.dev.java.net, the benchmark is in src/share/demo/java2d/J2DBench).

Thanks,
Dmitri