Hi, I'm having performance problems using the latest build of Java 6uN. It seems there are problems recognizing my graphics card or initializing the D3D pipeline. I have the same piece of code executing under JDK 6u1 and JDK 6uNb10. This code is an active rendering loop. Under 6u1, I get ~200 FPS, but under 6uNb10, I only get 69 FPS. Profiling shows there is significant time spent in java.awt.image.BufferStrategy.show().
The different calls look like this: Executed call: "C:\Program Files\Java\jdk1.6.0_01\bin\javaw.exe" -agentlib:jprofilerti=port=31762 "-Xbootclasspath/a:C:\Program Files\jprofiler5\bin\agent.jar" -classpath C:\JavaProg\fkJava\classes Lab1.two.ActiveDrawer Executed call: "C:\Program Files\Java\jdk1.6.0_10\bin\javaw.exe" -agentlib:jprofilerti=port=31761 "-Xbootclasspath/a:C:\Program Files\jprofiler5\bin\agent.jar" -classpath C:\JavaProg\fkJava\classes Lab1.two.ActiveDrawer Here are call trees from profiling: http://i18.tinypic.com/80uw5zl.png - 6u1 http://i16.tinypic.com/73o8cx5.png - 6uNb10 Below is console output from three separate executions, the two first using 6u1, and the last one using 6uNb10: ---------------------------------------------------- [W] GetFlagValues: DDraw screen locking is disabled (W2K, XP+) [I] InitDirectX [V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 6600 GT [I] CreateDevice: lpGUID=0x0 hMon=0x0 [I] DDSetupDevice [I] DDraw::CreateDDPrimarySurface: back-buffers=0 [V] DDSetupDevice: successfully created primary surface [V] DDSetupDevice: successfully setup ddraw device [I] DDSetupDevice [I] DDraw::CreateDDPrimarySurface: back-buffers=0 [V] DDSetupDevice: successfully created primary surface [V] DDSetupDevice: successfully setup ddraw device [I] D3DContext::D3DContext [V] D3DUtils_SelectDeviceGUID: using TNL rasterizer [I] D3DContext::CreateD3DDevice [I] D3DContext::CreateAndTestD3DDevice [I] D3DContext::InitD3DDevice: d3dDevice=Oxb1800 [V] D3DContext::CreateAndTestD3DDevice: D3D device creation/initialization successful [W] TestRenderingResults: Quality test failed due to value ff at (34, 0) [I] CreateD3DDevice: tests PASSED, d3d enabled (forced: no). [I] D3DContext::CreateD3DDevice [I] D3DContext::CreateAndTestD3DDevice [I] D3DContext::InitD3DDevice: d3dDevice=Oxb1800 [V] D3DContext::CreateAndTestD3DDevice: D3D device creation/initialization successful [W] TestRenderingResults: Quality test failed due to value ff at (34, 0) [I] CreateD3DDevice: tests PASSED, d3d enabled (forced: no). ---------------------------------------------------- [W] GetFlagValues: DDraw screen locking is disabled (W2K, XP+) [I] InitDirectX [V] CheckRegistry: Found Display Device 0: NVIDIA GeForce 6600 GT [I] CreateDevice: lpGUID=0x0 hMon=0x0 [I] DDSetupDevice [I] DDraw::CreateDDPrimarySurface: back-buffers=0 [V] DDSetupDevice: successfully created primary surface [V] DDSetupDevice: successfully setup ddraw device [I] D3DContext::D3DContext [V] D3DUtils_SelectDeviceGUID: using TNL rasterizer [I] D3DContext::CreateD3DDevice [I] D3DContext::CreateAndTestD3DDevice [I] D3DContext::InitD3DDevice: d3dDevice=Oxaf5a0 [V] D3DContext::CreateAndTestD3DDevice: D3D device creation/initialization successful [W] TestRenderingResults: Quality test failed due to value ff at (34, 0) [I] CreateD3DDevice: tests PASSED, d3d enabled (forced: no). [I] D3DContext::CreateD3DDevice [I] D3DContext::CreateAndTestD3DDevice [I] D3DContext::InitD3DDevice: d3dDevice=Oxaf5a0 [V] D3DContext::CreateAndTestD3DDevice: D3D device creation/initialization successful [W] TestRenderingResults: Quality test failed due to value ff at (34, 0) [I] CreateD3DDevice: tests PASSED, d3d enabled (forced: no). [E] D3DContext::SetRenderTarget: target surface (and/or depth buffer) lost: DirectDraw Error: DDERR_SURFACELOST [I] D3DContext::CreateD3DDevice [I] D3DContext::CreateAndTestD3DDevice [I] D3DContext::InitD3DDevice: d3dDevice=Oxaf5a0 [V] D3DContext::CreateAndTestD3DDevice: D3D device creation/initialization successful [W] TestRenderingResults: Quality test failed due to value ff at (34, 0) [I] CreateD3DDevice: tests PASSED, d3d enabled (forced: no). ---------------------------------------------------- [I] OS Version = OS_WINXP Pro [I] CheckAdaptersInfo [I] ------------------ [I] Adapter Ordinal : 0 [I] Adapter Handle : 0x10001 [I] Description : NVIDIA GeForce 6600 GT [I] GDI Name, Driver : \\.\DISPLAY1, nv4_disp.dll [I] Vendor Id : 0x10de [I] Device Id : 0x00f1 [I] SubSys Id : 0x21191682 [I] Driver Version : 6.14.11.6921 [I] GUID : {D7B71E3E-43B1-11CF-3B6E-120103C2CB35} [I] D3DPPLM::CheckDeviceCaps: adapter 0: Passed [I] ------------------ [I] D3DGD_getDeviceCapsNative [I] D3DContext::InitContext device 0 [I] D3DContext::ConfigureContext device 0 [V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING [I] D3DContext::ConfigureContext: successfully created device: 0 [I] D3DContext::InitDevice: device 0 [I] D3DContext::InitDefice: successfully initialized device 0 [V] | CAPS_DEVICE_OK [V] | CAPS_RT_PLAIN_ALPHA [V] | CAPS_RT_TEXTURE_ALPHA [V] | CAPS_RT_TEXTURE_OPAQUE [V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER | CAPS_PS20 [V] | CAPS_PS30 [V] | CAPS_MULTITEXTURE [V] | CAPS_TEXNONPOW2 [V] | CAPS_TEXNONSQUARE [I] D3DContext::ConfigureContext device 0 [V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING [I] D3DContext::ConfigureContext: successfully created device: 0 [I] D3DContext::InitDevice: device 0 [I] D3DContext::InitDefice: successfully initialized device 0 [V] | CAPS_DEVICE_OK [V] | CAPS_RT_PLAIN_ALPHA [V] | CAPS_RT_TEXTURE_ALPHA [V] | CAPS_RT_TEXTURE_OPAQUE [V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER | CAPS_PS20 [V] | CAPS_PS30 [V] | CAPS_MULTITEXTURE [V] | CAPS_TEXNONPOW2 [V] | CAPS_TEXNONSQUARE [I] D3DContext::ConfigureContext device 0 [I] D3DContext::ConfigureContext: successfully reset device: 0 [I] D3DContext::InitDevice: device 0 [I] D3DContext::InitDefice: successfully initialized device 0 [V] | CAPS_DEVICE_OK [V] | CAPS_RT_PLAIN_ALPHA [V] | CAPS_RT_TEXTURE_ALPHA [V] | CAPS_RT_TEXTURE_OPAQUE [V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER | CAPS_PS20 [V] | CAPS_PS30 [V] | CAPS_MULTITEXTURE [V] | CAPS_TEXNONPOW2 [V] | CAPS_TEXNONSQUARE [I] D3DContext::ResetContext [I] D3DContext::ConfigureContext device 0 [V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING [I] D3DContext::ConfigureContext: successfully created device: 0 [I] D3DContext::InitDevice: device 0 [I] D3DContext::InitDefice: successfully initialized device 0 [V] | CAPS_DEVICE_OK [V] | CAPS_RT_PLAIN_ALPHA [V] | CAPS_RT_TEXTURE_ALPHA [V] | CAPS_RT_TEXTURE_OPAQUE [V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER | CAPS_PS20 [V] | CAPS_PS30 [V] | CAPS_MULTITEXTURE [V] | CAPS_TEXNONPOW2 [V] | CAPS_TEXNONSQUARE ---------------------------------------------------- I am running the latest ForceWare drivers from nvidia.com. I hope someone is able to make anything out of this. [Message sent by forum member 'ejoakim' (ejoakim)] http://forums.java.net/jive/thread.jspa?messageID=254316 =========================================================================== 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".
