JavaFx: WebView perfomance in Window 7
Anton Tarasov
anton.tarasov at oracle.com
Mon Jun 8 22:36:42 UTC 2015
Hi Alexander,
It shouldn't be a problem with WebView. Likely that JFX on your
Win7_32bit falls back to software rendering pipeline.
You can check that with passing "-Dprism.verbose=true" to JVM. You'll
see something like this:
[java] Prism pipeline init order: es2 sw
[java] Using native-based Pisces rasterizer
[java] Using dirty region optimizations
[java] Not using texture mask for primitives
[java] Not forcing power of 2 sizes for textures
[java] Using hardware CLAMP_TO_ZERO mode
[java] Opting in for HiDPI pixel scaling
[java] Prism pipeline name = com.sun.prism.es2.ES2Pipeline
[java] Loading ES2 native library ... prism_es2
[java] succeeded.
(This is what I get on my Mac, on Windows it should be d3d instead of es2)
Just check the pipeline name. It'll likely be SWPipeline (Software).
Also, you can force JFX to use D3D (though, I suspect it will fail in
your case) with "-Dprism.order=d3d".
Why JFX fails (in case it does) with D3D on your GPU is another question
(hope someone else may help you with it).
Regards,
Anton.
On 04/06/15 23:54, Александр Свиридов wrote:
> I have program and a webview which loads from http://lenta.ru site. I checked my program on centos 7.1 (64 bit, oracle jre 1.8.60) and on windows 7 (32 bit, oracle jre 1.8.60). There is a very very significant difference between them. On centos webview works a little bit slower then in firefox. However on win7 in comparison with centos perfomance is about 5-10 times worse. For example I can't scroll faster - I have to wait until the part of the page is rendered. How can it be solved (if it can)?
>
>
More information about the openjfx-dev
mailing list