Canvas Clip performance
Elric Morgenstern
elric.mn at gmail.com
Fri Feb 5 13:22:42 UTC 2016
Ok. Maybe the problems I am experiencing now with JavaFX are the reason why
D3D is not enabled for J2D?
I think Intel Graphics are rather widespread among laptops, so I'm a bit
surprised at the huge performance drop (from solid 60 FPS to 8 once I use a
spherical clip shape). I'd think Intel Graphics hardware form part of the
test set. I'm using a fairly common laptop (especially around business
circles) Dell Latitude E6410.
Any chance of this being investigated or do you think I will have to settle
with a workaround?
On Fri, Feb 5, 2016 at 1:01 AM, Philip Race <philip.race at oracle.com> wrote:
>
>
> On 2/4/16, 2:59 PM, Elric Morgenstern wrote:
>
>> I see. Interesting. Isn't there a switch to toggle it on JDK8?
>>
>
> There is no switch that can enable it if it is disabled by 'default'.
>
>>
>> Assuming you are talking about JavaFX, right? Because you were referring
>> to
>> Java2D in your reply.
>>
>
> No I am talking about 2D. What I meant was that maybe the performance issue
> is inherent in the card and the only reason it looks OK with Java2D on
> Intel is
> that we aren't using anything much at all of the Intel chip and are doing
> the work
> on the cpu instead.
>
> -phil.
>
>
>
>> On Thu, Feb 4, 2016 at 11:52 PM, Philip Race<philip.race at oracle.com>
>> wrote:
>>
>> Java 2D does not (generally) enable D3D on Intel.
>>> We tried for JDK 8 but there were problems and it was disabled again in
>>> 8u40 I think.
>>> JDK 9 EA builds (currently) still have it enabled to help get some
>>> testing
>>> so
>>> if you are running an 8ux release you might want to switch to 9 to get a
>>> fairer comparison.
>>>
>>> -phil.
>>>
>>>
>>>
>>> On 2/4/16, 2:49 PM, Elric Morgenstern wrote:
>>>
>>> Hi guys,
>>>>
>>>> I've noticed that clipping performance (Canvas GraphicsContext) is
>>>> extremely bad on an Intel HD graphics chip. One rectangular clip is
>>>> fine,
>>>> anything beyond that, or a spherical clip shape, will bring the
>>>> framerate
>>>> to its knees.
>>>>
>>>> I notice no performance difference on my GeForce system, but on the
>>>> integrated chip my application is basically insufferable.
>>>>
>>>> The same thing performed with Java2D experiences no performance issues
>>>> on
>>>> neither system.
>>>>
>>>> Any ideas?
>>>>
>>>>
More information about the openjfx-dev
mailing list