英特尔965上的JavaFX硬件加速

时间:2015-04-27 05:48:43

标签: javafx intel hardware-acceleration

我想为我的应用程序提供一些不错的图形性能。 但问题是,我的显卡有点旧,java fx似乎不支持它。

我尝试设置一些环境变量,如 设置J2D_TRACE_LEVEL = 4 设置J2D_D3D_NO_HWCHECK = true

但这没有帮助。

如果我使用-Dprism.verbose = true选项查看发生了什么,这就是我得到的

Prism pipeline init order: d3d sw 
Using native-based Pisces rasterizer
Using dirty region optimizations
Not using texture mask for primitives
Not forcing power of 2 sizes for textures
Using hardware CLAMP_TO_ZERO mode
Opting in for HiDPI pixel scaling
Prism pipeline name = com.sun.prism.d3d.D3DPipeline
Loading D3D native library ...
    succeeded.
D3DPipelineManager: Created D3D9Ex device
Direct3D initialization failed
Adapter validation failed for all adapters
Device "Mobile Intel(R) 965 Express Chipset Family" (\\.\DISPLAY1)     initialization failed : 
WARNING: Unsupported video adapter found, device disabled
(X) Got class = class com.sun.prism.d3d.D3DPipeline
Prism pipeline name = com.sun.prism.sw.SWPipeline
(X) Got class = class com.sun.prism.sw.SWPipeline
Initialized prism pipeline: com.sun.prism.sw.SWPipeline
GraphicsPipeline.createPipeline: error initializing pipeline     com.sun.prism.d3d.D3DPipeline
*** Fallback to Prism SW pipeline
 vsync: true vpipe: false

如何利用我的显卡杠杆获得一些javafx,以便提高性能?

1 个答案:

答案 0 :(得分:0)

使用prism.forceGPU=true作为命令行参数。它禁用了适配器支持检查。