Skip to main content

Gray Rect fix of Java2 SE 6

4 replies [Last post]
Anonymous

I'm facing some graphics performance issues by running my apps on Java2SE 6,
never experienced on Java2SE 5.
Is possible to temporarily disable the "Gray Rect" fix (I have some
suspects) ?

Mik
--

===========================================================================
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".

Reply viewing options

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

Hi Mik,

There's no "official" way to disable the gray-rect fix, but here's a
simple way to do it: install a trivial RepaintManager. This will revert
to the JDK 5 behavior, which might help you figure out if the gray-rect
fix is related to your performance issues. Let us know what you find.

For example:
class MyRepaintManager extends RepaintManager {}
RepaintManager.setCurrentManager(new MyRepaintManager());

Thanks,
Chris

Michele Puccini wrote:
> I'm facing some graphics performance issues by running my apps on
> Java2SE 6,
> never experienced on Java2SE 5.
> Is possible to temporarily disable the "Gray Rect" fix (I have some
> suspects) ?
>
> Mik
> --
>
> ===========================================================================
> 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

Thanks Chris,

sadly the trick didn't work for me. The problem is still here, even when
disabling double buffering.

The GUI is extremely responsive with Java2SE 5.x but not with the new
Java2SE 6 RC.
This happens when the application is involved in some heavy graphics
computation (40% cpu, multiple threads drawing graphics, etc.).

Maybe it's a threading priority problem. I don't know. I'm on a P4 dual.
I was thinking about a side effect of the new gray rect fix, but it's not.

Mik
============================================================================
> ClassX Development Italy Via Francesca, 368/I I-56030 S.M. a Monte (PI) <
> Tel.(+39)-0587-705153 Fax.(+39)-0587-705153 WEB: http://www.classx.it <
============================================================================

----- Original Message -----
From: "Chris Campbell"
To:
Sent: Monday, November 13, 2006 5:58 PM
Subject: Re: [JAVA2D] Gray Rect fix of Java2 SE 6

> Hi Mik,
>
> There's no "official" way to disable the gray-rect fix, but here's a
> simple way to do it: install a trivial RepaintManager. This will revert
> to the JDK 5 behavior, which might help you figure out if the gray-rect
> fix is related to your performance issues. Let us know what you find.
>
> For example:
> class MyRepaintManager extends RepaintManager {}
> RepaintManager.setCurrentManager(new MyRepaintManager());
>
> Thanks,
> Chris

===========================================================================
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".

Chris Campbell

Hi Mik,

Thanks for the update. It would be great if you could continue to
narrow down the problem and let us know what you find, since it sounds
like it could be a 2D-specific problem.

You didn't mention which platform you're running on, graphics card,
driver version, etc. Also, do you have the D3D or OGL pipeline enabled
by any chance?

Thanks,
Chris

Michele Puccini wrote:
> Thanks Chris,
>
> sadly the trick didn't work for me. The problem is still here, even when
> disabling double buffering.
>
> The GUI is extremely responsive with Java2SE 5.x but not with the new
> Java2SE 6 RC.
> This happens when the application is involved in some heavy graphics
> computation (40% cpu, multiple threads drawing graphics, etc.).
>
> Maybe it's a threading priority problem. I don't know. I'm on a P4 dual.
> I was thinking about a side effect of the new gray rect fix, but it's not.
>
> Mik
> ============================================================================
>
>
>> ClassX Development Italy Via Francesca, 368/I I-56030 S.M. a Monte
>> (PI) <
>> Tel.(+39)-0587-705153 Fax.(+39)-0587-705153 WEB:
>> http://www.classx.it <
>
> ============================================================================
>
>
> ----- Original Message -----
> From: "Chris Campbell"
> To:
> Sent: Monday, November 13, 2006 5:58 PM
> Subject: Re: [JAVA2D] Gray Rect fix of Java2 SE 6
>
>
>> Hi Mik,
>>
>> There's no "official" way to disable the gray-rect fix, but here's a
>> simple way to do it: install a trivial RepaintManager. This will revert
>> to the JDK 5 behavior, which might help you figure out if the gray-rect
>> fix is related to your performance issues. Let us know what you find.
>>
>> For example:
>> class MyRepaintManager extends RepaintManager {}
>> RepaintManager.setCurrentManager(new MyRepaintManager());
>>
>> Thanks,
>> Chris
>
>
> ===========================================================================
> 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

Hi Chris,

I'm back to the office and I keep with my tests. All I can say for the
moment is that I'm testing on a WinXP machine with 2GB ram, P945D, NVidia
Geforce 6600GT 128MB (drivers 93.71).
The OpenGL or D3D pipelines are off.

By enabling OpenGL I always get a bad crash in NVOpenGLPbuffer after the
first application splash screen opens.

Of course I can send you the test application if you have time to do your
tests.

Cheers,

Mik
--

----- Original Message -----
From: "Chris Campbell"
To:
Sent: Tuesday, November 14, 2006 4:08 AM
Subject: Re: [JAVA2D] Gray Rect fix of Java2 SE 6

> Hi Mik,
>
> Thanks for the update. It would be great if you could continue to
> narrow down the problem and let us know what you find, since it sounds
> like it could be a 2D-specific problem.
>
> You didn't mention which platform you're running on, graphics card,
> driver version, etc. Also, do you have the D3D or OGL pipeline enabled
> by any chance?
>
> Thanks,
> Chris
>
>
> Michele Puccini wrote:
>> Thanks Chris,
>>
>> sadly the trick didn't work for me. The problem is still here, even when
>> disabling double buffering.
>>
>> The GUI is extremely responsive with Java2SE 5.x but not with the new
>> Java2SE 6 RC.
>> This happens when the application is involved in some heavy graphics
>> computation (40% cpu, multiple threads drawing graphics, etc.).
>>
>> Maybe it's a threading priority problem. I don't know. I'm on a P4 dual.
>> I was thinking about a side effect of the new gray rect fix, but it's
>> not.
>>
>> Mik
>> ============================================================================
>>
>>
>>> ClassX Development Italy Via Francesca, 368/I I-56030 S.M. a Monte
>>> (PI) <
>>> Tel.(+39)-0587-705153 Fax.(+39)-0587-705153 WEB:
>>> http://www.classx.it <
>>
>> ============================================================================
>>
>>
>> ----- Original Message -----
>> From: "Chris Campbell"
>> To:
>> Sent: Monday, November 13, 2006 5:58 PM
>> Subject: Re: [JAVA2D] Gray Rect fix of Java2 SE 6
>>
>>
>>> Hi Mik,
>>>
>>> There's no "official" way to disable the gray-rect fix, but here's a
>>> simple way to do it: install a trivial RepaintManager. This will revert
>>> to the JDK 5 behavior, which might help you figure out if the gray-rect
>>> fix is related to your performance issues. Let us know what you find.
>>>
>>> For example:
>>> class MyRepaintManager extends RepaintManager {}
>>> RepaintManager.setCurrentManager(new MyRepaintManager());
>>>
>>> Thanks,
>>> Chris
>>
>>
>> ===========================================================================
>> 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".
>

===========================================================================
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".