Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 281|Reply: 4

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

[Copy link]

3

Threads

6

Posts

29

Credits

Novice

Rank: 1

Credits
29
Post time 2020-5-27 11:43:52 | Show all posts |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!

27

Threads

221

Posts

981

Credits

Senior member

Rank: 4

Credits
981
Post time 2020-5-29 05:11:35 | Show all posts
I don't know what yer talking about!  8-)  But maybe this will help?  Or maybe run it as SU?  Then if it works, try to see how to give it more processor time and memory which ever it needs.  The software engineering side of this is what you need.  There are ways to check the usage of each app.  I ran it recently but could n't tell you what command I used.

https://stackoverflow.com/questi ... -a-process-in-linux

https://stackoverflow.com/questi ... and-in-shell-script

https://www.google.com/search?sx ... iw=1732&bih=914
Thanks  [url=http://www.orangepi.org/orangepibbsen/static/image/smiley/default/biggrin.gif]http://ww

3

Threads

6

Posts

29

Credits

Novice

Rank: 1

Credits
29
 Author| Post time 2020-5-30 03:12:02 | Show all posts
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.

27

Threads

221

Posts

981

Credits

Senior member

Rank: 4

Credits
981
Post time 2020-5-30 06:34:15 | Show all posts
Sounds like the system is working ok with everything besides your app?  Maybe share the app code on GitHub or something? If I understand GitHub properly.  https://help.github.com/en/githu ... h-github/set-up-git

There are also other sites that offer assistance in developing.  This question on Quora appears to have some great answers.

https://www.quora.com/I-have-an- ... elp-to-develop-this

I really wish I could be of more help.  
Thanks  [url=http://www.orangepi.org/orangepibbsen/static/image/smiley/default/biggrin.gif]http://ww

3

Threads

6

Posts

29

Credits

Novice

Rank: 1

Credits
29
 Author| Post time 2020-5-30 06:43:01 | Show all posts
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.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-7-12 14:21 GMT+8 , Processed in 0.028089 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list