Skip to main content

D3D pipeline on Geforce-FX5200

7 replies [Last post]
linuxhippy
Offline
Joined: 2004-01-07

Hello,

I've reactivated one of my older machines to check wether the D3D pipeline does work on it.

1.) When running Java2Demo/demos.transform.Rotate (shear) resizing the window on and on gives the following Exceptions:

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
100
at java2d.MemoryMonitor$Surface.paint(MemoryMonitor.java:242)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
n Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

I have to admit that this was not "normal" resizing, but rather "resize like mad to see wether to does hickup".I don't know if it is linked to demos.transform.Rotate (shear), in fact it happend several times to me when rsizing like mad ...

2.) It seems like the driver sometimes punts the D3D surface to system-memory - could that be?
Its sometimes slow (really slow - LinesAnim at 10fps without AA) and sometimes like it should be.
I was not able to reproduce the same behaviour when runnig on the OpenGL-Pipeline - however I don't know wether this is driver specific, or if you even know already about it.

3.)
In TransformAnim some shapes are red with black "spots" - which slow down rendering when AA is disabled a lot.
TransformAnim, only shapes (one spotted shape): 4.48fps
TransformAnim, only shapes, AA (one spotted shape): 16.8fps
OpenGL, only shapes (one spotted shape) : ~50fps

Nothing important to me, I just thought it could be interesting ;)

4.)
Performance problems with JInternamFrames, Windows-LnF and accalerated pipelines:
When moving the JInternal Windows of SwingSet2 arround (the small one with the moon in it), its most of the time fast, but sometimes (e.g. when moving between the "Internal Frame Generator" and the other small JInternalFrames) performance drops a lot. The Moon-Frame moves about with 2fps or something like that.
I used Windows' XPs default theme (the ugly blue candy theme).
It happens when using both OpenGL or D3D, when using -Dsun.java2d.d3d=false it is always fast.

Hope that my tests were useful, if not, they were fun ;)

Thanks, lg Clemens

CPU: Athlon-Thunderbird 1000
[I] OS Version = OS_WINXP Pro
[I] CheckAdaptersInfo
[I] ------------------
[I] Adapter Ordinal : 0
[I] Adapter Handle : 0x10001
[I] Description : NVIDIA GeForce FX 5200
[I] GDI Name, Driver : \\.\DISPLAY1, nv4_disp.dll
[I] Vendor Id : 0x10de
[I] Device Id : 0x0322
[I] SubSys Id : 0x13511682
[I] Driver Version : 6.14.11.6316
[I] GUID : {D7B71E3E-4062-11CF-9E6D-5A3300C2CB35}
[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_ALPHA_RT_PLAIN
[V] | CAPS_ALPHA_RTT
[V] | CAPS_OPAQUE_RTT
[V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER
[V] | CAPS_MULTITEXTURE
[V] | CAPS_TEXNONSQUARE
Direct3D pipeline enabled on screen 0

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dmitri Trembovetski

Hi Michele,

java2d@JAVADESKTOP.ORG wrote:
> I'll try the new driver tomorrow.

Any luck? We're a bit pressed for time here, I'd like
to put the fix in today if possible (it's
either today or on January) and for that
I need a confirmation that the new driver
helped..

Thanks,
Dmitri

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

trembovetski
Offline
Joined: 2003-12-31

duh! Replied to the wrong message.

Dmitri

Michele Puccini

Not so wrong...

I would like to know if someone has tested the new 169.21 whql NVidia
drivers too.
They appear to be very slow in handling offscreen graphics (pbuffers),
compared with the previous 163.75.

Cheers,

Mik
--

----- Original Message -----
From:
To:
Sent: Saturday, December 22, 2007 6:55 AM
Subject: Re: [JAVA2D] D3D pipeline on Geforce-FX5200

> duh! Replied to the wrong message.
>
> Dmitri
> [Message sent by forum member 'trembovetski' (trembovetski)]
>
> http://forums.java.net/jive/thread.jspa?messageID=251213
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

linuxhippy
Offline
Joined: 2004-01-07

[quote]
I have a FX5200 board here and it doesn't have an of these issues.
It's not the fastest board around, for sure, but I haven't seen
rendering artifacts you're describing.
[/quote]

Well it does not show artifacts - it works as intended but sometimes too slow. So its not that bad, its perfectly useable.
I thought that the Execptions thrown could be useful, maybe some reace condition?

I'll try the new driver tomorrow.

lg Clemens

Dmitri Trembovetski

java2d@JAVADESKTOP.ORG wrote:
> [quote]
> I have a FX5200 board here and it doesn't have an of these issues.
> It's not the fastest board around, for sure, but I haven't seen
> rendering artifacts you're describing.
> [/quote]
>
> Well it does not show artifacts - it works as intended but sometimes too slow. So its not that bad, its perfectly useable.
> I thought that the Execptions thrown could be useful, maybe some reace condition?
>
>

I believe this is a manifestation of an old Java2Demo bug,
but thanks for reporting (java2d.MemoryMonitor is a Java2Demo class).

Java2Demo is not the most cleanly written application, which helped
us with finding many bugs in our code so we like to keep it slightly
broken =)

Thanks,
Dmitri

> I'll try the new driver tomorrow.
>
> lg Clemens
> [Message sent by forum member 'linuxhippy' (linuxhippy)]
>
> http://forums.java.net/jive/thread.jspa?messageID=251053
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Dmitri Trembovetski

Thanks a lot for the report, of course it is useful.

I have a FX5200 board here and it doesn't have an of these issues.
It's not the fastest board around, for sure, but I haven't seen
rendering artifacts you're describing.

Could you try installing the latest driver from nvidia.com and
see if it helps? The latest version is 169.21 and you have 163.16.

I'll file a bug anyway so that we can track this. We'll likely need
to only enable the pipeline if the driver is known to be ok.

Thanks,
Dmitri

java2d@JAVADESKTOP.ORG wrote:
> Hello,
>
> I've reactivated one of my older machines to check wether the D3D pipeline does work on it:
> CPU: Athlon-Thunderbird 1000
> [I] OS Version = OS_WINXP Pro
> [I] CheckAdaptersInfo
> [I] ------------------
> [I] Adapter Ordinal : 0
> [I] Adapter Handle : 0x10001
> [I] Description : NVIDIA GeForce FX 5200
> [I] GDI Name, Driver : \\.\DISPLAY1, nv4_disp.dll
> [I] Vendor Id : 0x10de
> [I] Device Id : 0x0322
> [I] SubSys Id : 0x13511682
> [I] Driver Version : 6.14.11.6316
> [I] GUID : {D7B71E3E-4062-11CF-9E6D-5A3300C2CB35}
> [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_ALPHA_RT_PLAIN
> [V] | CAPS_ALPHA_RTT
> [V] | CAPS_OPAQUE_RTT
> [V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER
> [V] | CAPS_MULTITEXTURE
> [V] | CAPS_TEXNONSQUARE
> Direct3D pipeline enabled on screen 0
>
> These are my findings:
>
> 1.) When running Java2Demo/demos.transform.Rotate (shear) resizing the window on and on gives the following Exceptions:
>
> Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
> 100
> at java2d.MemoryMonitor$Surface.paint(MemoryMonitor.java:242)
> at javax.swing.JComponent.paintToOffscreen(Unknown Source)
> at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
> at javax.swing.RepaintManager.paint(Unknown Source)
> at javax.swing.JComponent._paintImmediately(Unknown Source)
> at javax.swing.JComponent.paintImmediately(Unknown Source)
> at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
> at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
> at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
> n Source)
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
> I have to admit that this was not "normal" resizing, but rather "resize like mad to see wether to does hickup".I don't know if it is linked to demos.transform.Rotate (shear), in fact it happend several times to me when rsizing like mad ...
>
>
> 2.) It seems like the driver sometimes punts the D3D surface to system-memory - could that be?
> Its sometimes slow (really slow - LinesAnim at 10fps without AA) and sometimes like it should be.
> I was not able to reproduce the same behaviour when runnig on the OpenGL-Pipeline - however I don't know wether this is driver specific, or if you even know already about it.
>
> 3.) In TransformAnim some shapes are red with black "spots" - which slow down rendering when AA is disabled a lot.
> TransformAnim, only shapes (one spotted shape): 4.48fps
> TransformAnim, only shapes, AA (one spotted shape): 16.8fps
> OpenGL, only shapes (one spotted shape) : ~50fps
>
> Nothing important to me, I just thought it could be interesting ;)
>
> 4.) Performance problems with JInternamFrames, Windows-LnF and accalerated pipelines:
> When moving the JInternal Windows of SwingSet2 arround (the small one with the moon in it), its most of the time fast, but sometimes (e.g. when moving between the "Internal Frame Generator" and the other small JInternalFrames) performance drops a lot. The Moon-Frame moves about with 2fps or something like that.
> I used Windows' XPs default theme (the ugly blue candy theme).
> It happens when using both OpenGL or D3D, when using -Dsun.java2d.d3d=false it is always fast.
>
> Hope that my tests were useful, if not, they were fun ;)
>
> Thanks, lg Clemens
> [Message sent by forum member 'linuxhippy' (linuxhippy)]
>
> http://forums.java.net/jive/thread.jspa?messageID=250961
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Michele Puccini

A bit off-topic, maybe, but as I'm experiencing a serious performance issue
with the new 169.21 whql NVidia drivers, I would share some info here.

The rendering speed of my RGBA pbuffers draw and readback demo is falling
down from 850fps to 300 fps, compared with the previous 163.75 whql driver
(-65%).

Config: WinXP, Intel DP35DP, Q6600 @ 2.4ghz, 2GB ram, NV8600GTS.

Is there someone here with the same performance issue ?

--

----- Original Message -----
From: "Dmitri Trembovetski"
To:
Sent: Thursday, December 20, 2007 6:26 PM
Subject: Re: [JAVA2D] D3D pipeline on Geforce-FX5200

> Thanks a lot for the report, of course it is useful.
>
> I have a FX5200 board here and it doesn't have an of these issues.
> It's not the fastest board around, for sure, but I haven't seen
> rendering artifacts you're describing.
>
> Could you try installing the latest driver from nvidia.com and
> see if it helps? The latest version is 169.21 and you have 163.16.
>
> I'll file a bug anyway so that we can track this. We'll likely need
> to only enable the pipeline if the driver is known to be ok.
>
> Thanks,
> Dmitri
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".