Creating and adding my GLCanvas to my JFrame takes ~1 second, is this normal?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating and adding my GLCanvas to my JFrame takes ~1 second, is this normal?

Neil
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?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Creating and adding my GLCanvas to my JFrame takes ~1 second, is this normal?

Sven Gothel
Administrator
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


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Creating and adding my GLCanvas to my JFrame takes ~1 second, is this normal?

Neil
I'm using the latest stable build not the nightlies so I doubt that there is any changes you will make to anything based on what I say! lol. It must be something I am doing, even if it is not it may already be ok in the nightlies.

I do not have much time to check into this at the moment, I will check what I am doing at a later date but for noe the ~1 second is not hurting me :)

In fact it actually gives time for my splash logo to display so I'm not in a hurry to fix it ^^