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

yousuf post at 2024-7-3 23:08:08

Great survey, I'm sure you're getting a great response.        BDG Win login

yousuf post at 2024-7-6 15:23:43

Another interesting article, Thanks for sharing this information, it is unusual to read such high quality posts. I will bookmark your site.        Star Wars fan art

yousuf post at 2024-7-6 17:57:00

나는 최근 귀하의 웹사이트, 특히 이 블로그 페이지에서 많은 유용한 정보를 발견했습니다. 귀하의 기사에 대한 많은 댓글 중. 공유해 주셔서 감사합니다.        토토솔루션

yousuf post at 2024-7-14 23:19:50

What’s Taking place i am new to this, I stumbled upon this I have discovered It positively helpful and it has aided me out loads. I am hoping to give a contribution & assist different users like its helped me. Great job.        mp3 juice

yousuf post at 2024-8-30 20:25:15

you have a very great weblog here! do you wish to develop invite posts in my blog?        betflix เว็บตรง
page: [1] 2 3
View full version: Java (Processing) App Runs Extremely Slowly on Orange Pi PC