Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
Every native DirectX application runs fine on my machine without making it any unstable. Why should Java be an exception? The 6u10 version may very well run just fine on your system. The older versions combined DirectX and GDI rendering to the same surface which is prohibited on Vista (something that used to work just fine on previous Windows versions). Another thing to consider is that Java2D makes use of DirectX APIs in a slightly different way than the typical 3D applications like games, so we often hit less tested code paths of the drivers. You can disable the hw/os check by setting J2D_D3D_NO_HWCHECK env variable to 'true' prior to starting your application. I'm pretty sure it will work fine on your system (make sure you have the latest drivers). Thanks, Dmitri [Message sent by forum member 'trembovetski' (trembovetski)] http://forums.java.net/jive/thread.jspa?messageID=284117 === 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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
You can disable the hw/os check by setting J2D_D3D_NO_HWCHECK env variable to 'true' prior to starting your application. I'm pretty sure it will work fine on your system (make sure you have the latest drivers). That was exactly what I was looking for :) The point is that I don't need the hw acceleration to make things run, but rather to see how well they perform under real conditions. I've just tested it and it works fine, with latest NVidia drivers installed (ForceWare 175.16). Thanks a lot, Dmitri! -- smf68 [Message sent by forum member 'smf68' (smf68)] http://forums.java.net/jive/thread.jspa?messageID=284200 === 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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
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. 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. That might well be, so it seems like I cheered too soon... 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. 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. Well, if there is a way to enable it and you don't tell me how to do it or if there is no way at all is equivalent for me. If you're aware of issues on some systems, I utterly understand it if you disable the pipeline by default. However, that doesn't mean that all systems will be unstable and that nobody would like to make use of it. Every native DirectX application runs fine on my machine without making it any unstable. Why should Java be an exception? 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. As curious as this might sound, WS2008 is actually an excellent desktop OS. At one hand, it is clean, fast and stable because that's what's a server OS like (or what it should be like), obviously. On the other hand, mostly everything that runs on Vista is compatible with it too. I'm using it on a desktop PC because it allows me to use it as a workstation and to do local server testing at the same time, which is extremely handy for developing. I must clearly admit that I haven't missed Vista any moment since I'm running it. It requires some more setting up, though. -- smf68 [Message sent by forum member 'smf68' (smf68)] http://forums.java.net/jive/thread.jspa?messageID=284043 === 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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
That may be true, however, if you go and try to download a driver for WS2008 from the manufacturer's webiste you may find that it is not available, or the version available may be year(s) old. The problem is not with the OS, it's with the drivers. The drivers available for the server class OSes are typically older, and buggier. Given the same driver version it most likely work just fine on Win2k8, however, the chances of encountering a new driver on these systems is much lower. I have seen numerous issues with older drivers on Win2k3, 2k8. To my knowledge, this was true for all WS versions before 2008 but isn't anymore. You still won't find WS2008 drivers on your manufacturer's website, but know it is because you don't need any - the Vista drivers will work fine. 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. 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. -- smf68 [Message sent by forum member 'smf68' (smf68)] http://forums.java.net/jive/thread.jspa?messageID=283434 === 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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
[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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
What's the reason for making the DirectX pipeline work only on non-server Windows OS? Is there any way to get around this issue? The main reason is that the available drivers for the server os-es typically lag behind the client versions, so we had seen many issues with those older drivers. Also, the admins normally aren't eager to update to the newer driver versions even when they're available. The second reason is that arguably graphics performance isn't that important on a server machine, stability is the main goal. For example, by default Aero isn't even installed on Server 2008 to my knowledge. Thanks, Dmitri [Message sent by forum member 'trembovetski' (trembovetski)] http://forums.java.net/jive/thread.jspa?messageID=283178 === 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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
The main reason is that the available drivers for the server os-es typically lag behind the client versions, so we had seen many issues with those older drivers. Also, the admins normally aren't eager to update to the newer driver versions even when they're available. As far as I know, the Windows Server 2008 OS uses the exact same kernel as Windows Vista since Service Pack 1, which means that every Vista driver should run on both OS. Concerning the video drivers, this works for at least NVidia drivers since I'm running the latest version here and everything works fine. The second reason is that arguably graphics performance isn't that important on a server machine, stability is the main goal. For example, by default Aero isn't even installed on Server 2008 to my knowledge. Obviously, that's true. Still, I see no reason not to make DirectX hardware acceleration possible for those who have use for it if the OS supports it. Even if not everybody needs it, it won't hurt anyone. I don't know the exact technical details of the Java2D DirectX pipeline, but my experience is that everything that works on Vista works on Server 2008 as well. I guess everything would work by just removing that OS check block for Server 2008. [Message sent by forum member 'smf68' (smf68)] http://forums.java.net/jive/thread.jspa?messageID=283201 === 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.
Re: [JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
[EMAIL PROTECTED] wrote: The main reason is that the available drivers for the server os-es typically lag behind the client versions, so we had seen many issues with those older drivers. Also, the admins normally aren't eager to update to the newer driver versions even when they're available. As far as I know, the Windows Server 2008 OS uses the exact same kernel as Windows Vista since Service Pack 1, which means that every Vista driver should run on both OS. Concerning the video drivers, this works for at least NVidia drivers since I'm running the latest version here and everything works fine. That may be true, however, if you go and try to download a driver for WS2008 from the manufacturer's webiste you may find that it is not available, or the version available may be year(s) old. The second reason is that arguably graphics performance isn't that important on a server machine, stability is the main goal. For example, by default Aero isn't even installed on Server 2008 to my knowledge. Obviously, that's true. Still, I see no reason not to make DirectX hardware acceleration possible for those who have use for it if the OS supports it. Even if not everybody needs it, it won't hurt anyone. I don't know the exact technical details of the Java2D DirectX pipeline, but my experience is that everything that works on Vista works on Server 2008 as well. I guess everything would work by just removing that OS check block for Server 2008. The problem is not with the OS, it's with the drivers. The drivers available for the server class OSes are typically older, and buggier. Given the same driver version it most likely work just fine on Win2k8, however, the chances of encountering a new driver on these systems is much lower. I have seen numerous issues with older drivers on Win2k3, 2k8. Which is why the pipeline is disabled on the server class OS-es by default. 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.
[JAVA2D] Java2D DirectX Hardware Acceleration on Windows Server 2008?
Hi, I've recently started playing around with Java2D and started noticing that neither BufferedImage nor VolatileImage objects are accelerated on my Windows Server 2008 machine. I'm using native NVidia drivers, have DirextX 10 installed and every native DirectX game I own works fine. Changing the [i]sun.java2d.d3d[/i] and [i]sun.java2d.noddraw[/i] flags doesn't change this matter. The only way I found to get the images accelerated is to use [i]sun.java2d.opengl[/i], however, I didn't experience this to be any faster than the software rendering I'm getting without it. After hours of debugging and testing, I finally got the actual error message by setting the environment variable [i]J2D_TRACE_LEVEL[/i] to 4, as suggested in various troubleshooting threads round here. What I get (when not using the OpenGL pipeline) is: [code] [I] OS Version = OS_WINSERV_2008 or newer [E] D3DPPLM::CheckOSVersion: Windows 2000 or earlier (or a server) OS detected, failed [/code] What's the reason for making the DirectX pipeline work only on non-server Windows OS? Is there any way to get around this issue? As I said, all other DirectX applications work (even with DirectX 10 features!). Any suggestions or hints are highly appreciated. -- smf68 [Message sent by forum member 'smf68' (smf68)] http://forums.java.net/jive/thread.jspa?messageID=283127 === 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.