Canvas Clip performance

Philip Race philip.race at
Fri Feb 5 00:01:46 UTC 2016

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.


> On Thu, Feb 4, 2016 at 11:52 PM, Philip Race<philip.race at>  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