[EMAIL PROTECTED] wrote:
I did some more testing today and here's what I found out:
Up to then, I was using jre_1.6.0_10. I tried to run my test program with an
older JRE version and surprisingly, the WS2008 block didn't exist in
jre1.6.0_06 yet.
However, Vista seems to be blocked there and the JRE thinks I'm running Vista:
[code][W] GetFlagValues: DDraw/D3D is disabled on Windows Vista[/code]
So still no hardware acceleration.
I started playing around with the JRE binary and tried to set Windows'
compatibility mode to Windows XP SP2 for those two files:
C:\Windows\system32\java.exe
C:\Program Files\Java\jre1.6.0_06\bin\javaw.exe
And magically, it worked:
[code][I] InitDirectX
[V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 8800 GTS 512
[I] DDSetupDevice
[V] D3DContext::CreateAndTestD3DDevice: D3D device creation/initialization
successful
[I] CreateD3DDevice: tests PASSED, d3d enabled (forced: no).
[I] DDSetupDevice[/code]
I reinstalled jre_1.6.0_10, applied the same change but that broke it again.
6u6 (and any pre-6u10 jdks) have the DirectX 7-based (DirectDraw)
pipeline, which has some serious issues with Vista's DWM (aka Aero),
which is why it was disabled on Vista by default.
Yes, you could have enabled it there (although we made sure it
couldn't be done done "accidentally" - you need to set
two properties) but you would quickly run into repainting
issues caused by a specific restriction the interaction
between the DirectDraw/GDI pipeline and DWM.
6u10 has new Direct3D 9-based rendering pipeline, which
doesn't use GDI for rendering at all, and thus works well
on Vista with or w/o DWM, so the new pipeline is enabled on
Vista by default.
Which is why the pipeline is disabled on the
server class
OS-es by default.
I'm perfectly fine with it being disabled by default. However, I just don't see
why there is no way to enable it manually, seeing that it worked perfectly well
for an old JRE version.
Firstly, the fact that in your limited testing you didn't see
issues when enabling the old pipeline on Vista means that
you just got lucky.
Secondly, I didn't say that there's no way to force the
pipeline, I just don't think it's a good idea to let people
override it at will (as it is with -Dsun.java2d.noddraw/d3d
properties), because the price for enabling it on a wrong
configuration may be a very unstable system.
I'm curious, why do you think you need the hw accelerated
pipeline on a server? If your system is beefy enough to
handle w2k8, it should be fast enough for the pretty much
any gui application even if it doesn't use the hw accelerated
pipeline.
Thanks,
Dmitri
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".