On 03/31/2012 08:39 PM, Neil [via jogamp] wrote:
>
>
> I create my GL canvas and addit to my (already existing and visible) JFrame
> but from when I begin adding it and when it is added takes ~1 second. I know
> that there may well be a lot to initialise but I am curious if this is
> normal behaviour?
>
Below you see the initialization time, JOGL needs to gather all GLProfiles.
Usually it's only about 150ms, if it takes longer we shall consider it a bug.
Please read our Wiki's FAQ re. bugreport (send: test.log and test_dbg.log)
and if possible, pls run this test as well on your platform.
The we would know you configuration etc ..
Recently we fixed a performance issue on OS X and also learned that on
some mobile devices XRandR data gathering is very slow.
<
https://jogamp.org/chuck/view/fwd/job/jogl/724/label=linux-x86_64-nvidia/testReport/com.jogamp.opengl.test.junit.jogl.acore/TestShutdownCompleteAWT/test01TwoLifes/>
Thread[AWT-EventQueue-0,6,main] GearsES2.init ...
Chosen GLCapabilities: GLCaps[glx vid 0x27, fbc 0x10d: on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/0/0, dbl, mono , h...[truncated 4886 chars]...s, 17 ms/f; total: 60 f, 57.5 fps, 17 ms/f
Thread[AWT-EventQueue-0,6,main] GearsES2.dispose ...
Thread[AWT-EventQueue-0,6,main] GearsES2.dispose FIN
Total: 1294.680295ms
GLProfile.initSingleton(): 133.648742ms
Demo Code: 1149.313207ms
GLProfile.shutdown(COMPLETE): 11.718346ms
~Sven