Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5616

Java • Re: wayland low efficiency for java2d

$
0
0
I have a java application need to draw 2d graphics dynamically. With the Pi 5, on x11 desktop, I can mantain 60fps at 1280*800 resolution, but on wayland it can only be running smoothly below 800*800 and sometimes even freeze the desktop gui. Is the wayland stable enough for using raspberry pi 5 ? Or should I simply use x11 for stability and efficiency?
I would have thought there would be an improvement over the Pi4 but that is not the case. If you want the faster drawing I would use X11. Also you can speed up Java2D by using the opengl pipeline, adding -Dsun.java2d.opengl=True to the invocation. And using VolatileImage buffers helps too.

Statistics: Posted by knute — Thu Dec 14, 2023 10:16 pm



Viewing all articles
Browse latest Browse all 5616

Trending Articles