renegadepriest post at 2020-5-27 11:43:52

Java (Processing) App Runs Extremely Slowly on Orange Pi PC

I am trying to set up the Orange Pi using Armbian as a sort of kiosk, where the OPi boots directly into a Java app (built with Processing) with a display window. I have lightdm installed, but desktop is disabled. So I run lightdm, and then run the Java app.
It runs really, really slowly, like 1 frame every 5 seconds. The same app runs at about 24fps on a Raspberry Pi B+ with Diet Pi. If I check the memory usage with free -m, it shows me that I have about 500M left of the 1GB total.

It seems like the app probably isn't hitting the GPU, or I can't imagine it would be this slow. I would also like to see if allocating more memory to the app is possible. Can someone help me with some ideas for optimizing this? Thanks!

renegadepriest post at 2020-5-30 03:12:02

Thanks for the links. I've been digging into this over the past few days, and I think it's a GPU issue. I seem to have plenty of memory to spare, but I think the rendering is happening on the CPU and not the GPU: here's what happens when I print out the OpenGL info:

***

OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.3.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 18.3.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

***

I tried to install Mesa drivers, and they seem be there, but it looks like the renderer is still using the CPU. I don't know why this is or how to fix it.

I use xinit to start a X window, and then I run the app. While the app is running at like 1 frame every 5 seconds, I can run glxgears and it shows over 100fps. So I'm just confused in general about what is going on.

renegadepriest post at 2020-5-30 06:43:01

Thanks for taking time to respond but hiring someone is really not the advice I was looking for, and Quora is not a good place to hire engineers anyway. I guess I was hoping for someone to be able to walk me through some GPU optimizations or point me to some new GPU drivers or something.

Ivanmerkeleon post at 2023-5-30 05:38:23

If your Java app is running slowly on the Orange Pi, there are a few potential factors that could be affecting its performance. Here are some suggestions to optimize the performance and try white label bitcoin wallet

shocksguide post at 2024-6-22 23:19:54

Variety of Games: Offshore casinos often offer a wider selection of games compared to local options. offshore casino guide

comewe7091 post at 2026-2-17 20:04:41

This particular truly actually an excellent set up which i actually truly loved checking out. It's not always normal which i range from the choice to determine a particular point.        go8

comewe7091 post at 2026-2-27 21:11:39

Impressive document! I personally experienced any learning. I’m hoping to see increased from your site. In my opinion , you can have impressive wisdom and in addition visual acuity. I’m now really contented utilizing this guidance.        https://betbdt1.net/

wohoba1482 post at 2026-3-3 21:19:50

those plastic shower curtains are very cheap and you can install it easily without sweat-        LIÊN MINH KJC

wohoba1482 post at 2026-3-11 00:08:10

Awesome! I thank you your contribution to this matter. It has been insightful. my blog: how to make a girl like you        mm88.com

wohoba1482 post at 2026-3-12 17:19:22

hmmm, mobile marketing is quite interesting, maybe there would be some more money making oppurtunities in it;;        33 bmw
page: [1] 2 3 4
View full version: Java (Processing) App Runs Extremely Slowly on Orange Pi PC