View: 7852|Reply: 17

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

[Copy link]

3

threads

6

posts

29

credits

Novice

Rank: 1

credits
29
Published in 2020-5-27 11:43:52 | Show all floors |Read mode
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!

3

threads

6

posts

29

credits

Novice

Rank: 1

credits
29
 Author| Published in 2020-5-30 03:12:02 | Show all floors
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.

3

threads

6

posts

29

credits

Novice

Rank: 1

credits
29
 Author| Published in 2020-5-30 06:43:01 | Show all floors
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.

0

threads

3

posts

21

credits

Novice

Rank: 1

credits
21
Published in 2023-5-30 05:38:23 | Show all floors
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

0

threads

13

posts

64

credits

Registered member

Rank: 2

credits
64
Published in 2024-6-22 23:19:54 | Show all floors
Variety of Games: Offshore casinos often offer a wider selection of games compared to local options. offshore casino guide
Published in 2024-7-3 23:08:08 | Show all floors
Great survey, I'm sure you're getting a great response.        BDG Win login
Published in 2024-7-6 15:23:43 | Show all floors
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
Published in 2024-7-6 17:57:00 | Show all floors
나는 최근 귀하의 웹사이트, 특히 이 블로그 페이지에서 많은 유용한 정보를 발견했습니다. 귀하의 기사에 대한 많은 댓글 중. 공유해 주셔서 감사합니다.        토토솔루션
Published in 2024-7-14 23:19:50 | Show all floors
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
Published in 2024-8-30 20:25:15 | Show all floors
you have a very great weblog here! do you wish to develop invite posts in my blog?        betflix เว็บตรง
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list