tirex
Posts: 3
Joined: Fri Jan 17, 2020 10:32 pm

JOGL less performance than kmscube

Sat Jan 25, 2020 10:33 am

Hi, i using JOGL without x11 on my raspberry pi 4 and i have just 12 fps with GearsES2 demo in 4k resolution.

What can I do to have 50 fps on my PC?

Demo logs:

Code: Select all

demo com.jogamp.opengl.demos.es2.GearsES2
position null
size 640 x 480
resize null
screen 0
translucent false
forceAlpha -1
undecorated false
atop false
abottom false
resizable true
sticky false
max_vert false
max_horz false
fullscreen false
mouseVisible true
mouseConfined false
pointerIcons true
forceES2 false
forceES3 false
forceGL3 false
forceGL2 false
forceDebug false
forceTrace false
useDoubleBuffer true
swapInterval 1
exclusiveContext false
useAnimator true
traceMouse false
Start-Demo
requested: vsync 1, GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GLES3/GLES3.hw], on-scr[.]]
Loading com.jogamp.opengl.demos.es2.GearsES2(1)
Choosen demo com.jogamp.opengl.demos.es2.GearsES2
Create PointerIcon #01: PointerIcon[obj 0xe50ce6, .egl.gbm_nil-1, 0xffffffff97111920, BGRA8888, 16 x 16, 8 / 8, pixels java.nio.HeapByteBuffer[pos=0 lim=1024 cap=1024]]
Create PointerIcon #02: PointerIcon[obj 0x1d904ec, .egl.gbm_nil-1, 0xffffffff971119a0, BGRA8888, 16 x 24, 0 / 0, pixels java.nio.HeapByteBuffer[pos=0 lim=1536 cap=1536]]
java.io.IOException: Could not resolve arrow-red-alpha-64x64.png
java.io.IOException: Could not resolve arrow-blue-alpha-64x64.png
window resized: [ 0 / 0  4096 x 2160 ] 4096x2160
Window Current State   : [visible, focused, resizable, ]
Window Supported States: [visible, toplevel, focused, decor, !aontop, !aonbottom, unsticky, fixed-position, fixed-size, max[!h, !v], fullscreen[false], pointer[visible, confined]]
NW chosen: GLCaps[egl cfg 0x12, vid 0x34325258: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GLES3/GLES3.hw], on-scr[.], [0x4d: GL, GLES1, GLES2, GLES3, VG]]
GL chosen: GLCaps[egl cfg 0x12, vid 0x34325258: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GLES3/GLES3.hw], on-scr[.], [0x4d: GL, GLES1, GLES2, GLES3, VG]]
window pos/siz: 0/0 4096x2160, [ l 0, r 0 - t 0, b 0 - 0x0]
HiDPI PixelScale: 0.0x0.0 (req) -> 0.0x0.0 (val) -> 1.0x1.0 (has)
Thread[main-Animator#00,5,main] GearsES2.init.0 0xee5251: tileRendererInUse null, GearsES2[obj 0xee5251 isInit false, usesShared false, 1 null, 2 null, 3 null, sharedGears null]
GearsES2 init 0xee5251 on Thread[main-Animator#00,5,main]
Chosen GLCapabilities: GLCaps[egl cfg 0x12, vid 0x34325258: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GLES3/GLES3.hw], on-scr[.], [0x4d: GL, GLES1, GLES2, GLES3, VG]]
INIT GL IS: jogamp.opengl.es3.GLES3Impl
Swap Interval  1
GL Profile     GLProfile[GLES3/GLES3.hw]
GL Version     3.0 (ES profile, arb, compat[ES2, ES3], FBO, hardware) - OpenGL ES 3.0 Mesa 19.2.0-rc1 [GL 3.0.0, vendor 19.2.0 (Mesa 19.2.0-rc1)]
Quirks         [No10BitColorCompOffscreen]
Impl. class    jogamp.opengl.es3.GLES3Impl
GL_VENDOR      Broadcom
GL_RENDERER    V3D 4.2
GL_VERSION     OpenGL ES 3.0 Mesa 19.2.0-rc1
GLSL           true, has-compiler-func: true, version: OpenGL ES GLSL ES 3.00 / 3.0.0
GL FBO: basic true, full true
GL_EXTENSIONS  65
GLX_EXTENSIONS 27
-----------------------------------------------------------------------------------------------------
gear1 0xee5251 created: GearsObj[0x1e2c97a, vbo ff 1, fs 2, bf 3, bs 4]
gear2 0xee5251 created: GearsObj[0x17621a9, vbo ff 7, fs 8, bf 9, bs 10]
gear3 0xee5251 created: GearsObj[0x17621a9, vbo ff 7, fs 8, bf 9, bs 10]
Thread[main-Animator#00,5,main] GearsES2.init.X 0xee5251 FIN GearsES2[obj 0xee5251 isInit true, usesShared false, 1 GearsObj[0x1e2c97a, vbo ff 1, fs 2, bf 3, bs 4], 2 GearsObj[0x17621a9, vbo ff 7, fs 8, bf 9, bs 10], 3 GearsObj[0x1015491, vbo ff 13, fs 14, bf 15, bs 16], sharedGears null]
Thread[main-Animator#00,5,main] GearsES2.reshape 0xee5251 0/0 4096x2160 of 4096x2160, swapInterval 1, drawable 0xffffffff9712b258, msaa false, tileRendererInUse null
>> GearsES2 0xee5251, angle 0.0, [l -1.8962963, r 1.8962963, b -1.0, t 1.0] 3.7925925x2.0 -> [l -1.8962963, r 1.8962963, b -1.0, t 1.0] 3.7925925x2.0, v-flip false
4 s: 60 f / 4952 ms, 12.1 fps, 82 ms/f; total: 60 f, 12.1 fps, 82 ms/f
9 s: 60 f / 4837 ms, 12.4 fps, 80 ms/f; total: 120 f, 12.2 fps, 81 ms/f
14 s: 60 f / 5003 ms, 11.9 fps, 83 ms/f; total: 180 f, 12.1 fps, 82 ms/f
19 s: 60 f / 4877 ms, 12.3 fps, 81 ms/f; total: 240 f, 12.2 fps, 81 ms/f
24 s: 60 f / 4959 ms, 12.0 fps, 82 ms/f; total: 300 f, 12.1 fps, 82 ms/f
29 s: 60 f / 5001 ms, 11.9 fps, 83 ms/f; total: 360 f, 12.1 fps, 82 ms/f
34 s: 60 f / 4751 ms, 12.6 fps, 79 ms/f; total: 420 f, 12.2 fps, 81 ms/f
39 s: 60 f / 5001 ms, 11.9 fps, 83 ms/f; total: 480 f, 12.1 fps, 82 ms/f
44 s: 60 f / 5000 ms, 12.0 fps, 83 ms/f; total: 540 f, 12.1 fps, 82 ms/f
49 s: 60 f / 5000 ms, 12.0 fps, 83 ms/f; total: 600 f, 12.1 fps, 82 ms/f
54 s: 60 f / 4917 ms, 12.2 fps, 81 ms/f; total: 660 f, 12.1 fps, 82 ms/f
59 s: 60 f / 5000 ms, 12.0 fps, 83 ms/f; total: 720 f, 12.1 fps, 82 ms/f
64 s: 60 f / 5001 ms, 11.9 fps, 83 ms/f; total: 780 f, 12.1 fps, 82 ms/f
69 s: 60 f / 4998 ms, 12.0 fps, 83 ms/f; total: 840 f, 12.1 fps, 82 ms/f
74 s: 60 f / 4999 ms, 12.0 fps, 83 ms/f; total: 900 f, 12.1 fps, 82 ms/f
79 s: 60 f / 4998 ms, 12.0 fps, 83 ms/f; total: 960 f, 12.1 fps, 82 ms/f
84 s: 60 f / 4999 ms, 12.0 fps, 83 ms/f; total: 1020 f, 12.1 fps, 82 ms/f
89 s: 60 f / 4999 ms, 12.0 fps, 83 ms/f; total: 1080 f, 12.0 fps, 82 ms/f
94 s: 60 f / 5000 ms, 12.0 fps, 83 ms/f; total: 1140 f, 12.0 fps, 82 ms/f
99 s: 60 f / 4999 ms, 12.0 fps, 83 ms/f; total: 1200 f, 12.0 fps, 82 ms/f
104 s: 60 f / 4999 ms, 12.0 fps, 83 ms/f; total: 1260 f, 12.0 fps, 82 ms/f

User avatar
clicky
Posts: 424
Joined: Thu Oct 25, 2012 7:34 am

Re: JOGL less performance than kmscube

Fri Jan 31, 2020 1:38 pm

tirex wrote:
Sat Jan 25, 2020 10:33 am
Hi, i using JOGL without x11 on my raspberry pi 4 and i have just 12 fps with GearsES2 demo in 4k resolution.

What can I do to have 50 fps on my PC?
You mean on Raspberry Pi? I am not sure if Raspberry Pi can achieve 50fps for with it. 12fps seems quite reasonable/expected performance...

Return to “Java”