Any problems with accelerated TRANSLUCENT images?

Hi there,

I’m just wondering if any of you guys had any problems with the accelerated translucent managed images (enabled with -Dsun.java2d.translaccel=true option), in 1.5 beta1?

There’s a slight chance that we may turn it on by default in 1.5…

Are there performance changes with this option compared with Java 1.4.2? Any known issue or hint?

The trick would be to turn it on by default in the next beta and see what happens in terms of bug reports. After all, it can be turned off just as easily as it can be turned on.

It’s sort of a secret as it is… so I understand why you ask here, the people in these forums are probably the only ones that have ever tried it.

With -Dsun.java2d.translaccel=true my swing gui is completely messy. I had to turn it off.
I noticed some little speed improvements is some little fields of application btw.

HINT: Resetting the look and feel helps to restore the gui.

Cheers,

Mik

[quote]With -Dsun.java2d.translaccel=true my swing gui is completely messy. I had to turn it off.
[/quote]
You report the bug, right?
And provided sample code that showed the problem?
And mentioned your graphics card model and driver versions?
They aren’t going to fix stuff unless we “officially” tell them it’s broken.

javazoid, please do elaborate on your problem. This is the first time we heard of something like this.

As swpalmer mentioned, please post your video board, driver and dx version, the OS, what application were you running, which toolkit (swing, awt, your own), on what jdk version.

Can you produce a test case?

Hello,

I did some deeper check and I discovered it as being a 1.5.0 b1 look and feel problem. -Dsun.java2d.translaccel=true does not change the result.

Take a look anyway

Under jdk1.5.0 b1

Under jdk1.4.2_04

The config:

Rapporto System Information disponibile in: 05/03/2004 15.53.56.
[Risorse di sistema]

Elemento Valore
Nome SO Microsoft Windows 2000 Professional
Versione 5.0.2195 Service Pack 4 Build 2195
Produttore SO Microsoft Corporation
Nome sistema MIK
Produttore sistema MICRO-STAR INTERNATIONAL CO., LTD
Modello sistema 8366-8233
Tipo sistema PC basato su X86
Processore x86 Family 6 Model 6 Stepping 2 AuthenticAMD ~1541 MHZ
Versione BIOS Award Modular BIOS v6.00PG
Directory Windows C:\WINNT
Directory di sistema C:\WINNT\system32
Unità di avvio \Device\Harddisk0\Partition1
Impostazioni internazionali Italia
Nome utente MIK\Administrator
Fuso orario ora solare Europa occidentale
Memoria fisica totale 785.904 KB
Memoria fisica disponibile 596.464 KB
Memoria virtuale totale 3.574.768 KB
Memoria virtuale disponibile 3.227.308 KB
Spazio file di paginazione 2.788.864 KB
File di paginazione C:\pagefile.sys

============================================================================

[Schermo]

Elemento Valore
Nome RADEON 7000 SERIES
ID periferica PNP
PCI\VEN_1002&DEV_5159&SUBSYS_013A1002&REV_00\4&618BA55&0&0008
Tipo di scheda RADEON 7000 AGP (0x5159), compatibile ATI Technologies Inc.
Descrizione scheda RADEON 7000 SERIES
RAM scheda 32,00 MB (33.554.432 byte)
Driver installati ati2dvag.dll
Versione driver 5.2.3790.2
File INF oem7.inf (sezione ati2mtag_RV100)
Regolatori colori 1
Voci tabella colori 4294967296
Risoluzione 1024 x 768 x 85 hertz
Bit/Pixel 32

Nome Matrox Mystique PCI - Italiano
ID periferica PNP
PCI\VEN_102B&DEV_051A&SUBSYS_00000000&REV_03\4&2FA69E0&0&0850
Tipo di scheda Non disponibile
Descrizione scheda Matrox Mystique PCI - Italiano
RAM scheda Non disponibile
Driver installati Non disponibile
Versione driver 5.00.2195.1200
File INF oem13.inf (sezione IN20.ITA)
Regolatori colori Non disponibile
Voci tabella colori Non disponibile
Risoluzione Non disponibile
Bit/Pixel Non disponibile

============================================================================

I’ve come across several problems with Swing in 1.5. Mainly layout behaviours being incorrect, possibly to do with image sizes.

Cas :slight_smile:

Apart from 1 area being a deep grey, and the other a light grey, what is the problem with those 2 pictures???

oh nvm, 1 of the comboboxes is knackered as well… so the top picture is 1.5 then :slight_smile:

Yes, Abuse, just look at the top of the first picture and you’ll see “Under jdk1.5.0 b1” ;D

But this has little to do with transaccell, fortunately.

First one is using the gtk look and feel (you have a setSystemLookAndFeel lurking somewhere in that panel code I guess?), the second one metal - so what’s the problem really? ???

(Except that the gtk theme used by 1.5_beta1 is quite ugly :wink:

Off topic: Anyone know why sun choose to implement gtk instead of (IMNSHO) the much prettier kde themes, for instance kde3.2+ plastik and keramik which are truly awesome compared to swing/gtk bluecureve/win32/xp?

[quote]Off topic: Anyone know why sun choose to implement gtk instead of (IMNSHO) the much prettier kde themes,
[/quote]
Issues with the KDE licence?

My understanding is that GTK L&F is not supposed to work on windows in 1.5.

Could be, noticed that ibm has a java qt/kde binding (i.e. swt uses qt/kde instead of gtk if I understood it correctly) available that they can’t release due to unclear licences - a real pitty :frowning: