Java2D: BufferedImage not accelerated on Ubuntu

别来无恙 提交于 2019-12-04 07:51:34

I believe the trouble is in the fact that you use BITMASK in a hardware accelerated environment.

I am not exactly clear about where the limitations are.

  • only VolatileImage? Or does it also apply to BITMASK BufferedImage instances?
  • does it apply to both the OpenGL and Direct3D pipelines? (not prudent to this thread; OpenGL is the only one available on Linux)

In any case the "solution" is to use BITMASK images only in software rendered environments; in hardware accelerated environments you need to use TRANSLUCENT images in stead. Its hard for me to find a valid source for my claim other than an older javagaming.org thread, so the only thing I can say is to try it out.

http://www.java-gaming.org/index.php?topic=19561.5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!