Login  Register

How to speedup acquiring a GLProfile?

Posted by riven on May 31, 2015; 11:01am
URL: https://forum.jogamp.org/How-to-speedup-acquiring-a-GLProfile-tp4034546.html

For a Raspberry PI 2 project I'm using JOGL with NEWT. I'm seeing a rather large delay when I'm acquiring an OpenGL/ES profile.

The following code takes roughly 10s (!) on the Raspberry PI 2
Even on my rather beefy desktop it takes over 5s to acquire a GLProfile instance.
------------------
                long t0 = System.currentTimeMillis();
                //GLProfile profile = GLProfile.get(GLProfile.GL3); // desktop
                GLProfile profile = GLProfile.get(GLProfile.GL2ES2); // raspberry pi 2
                long t1 = System.currentTimeMillis();
                System.out.println("GLProfile took: " + (t1 - t0) + "ms");
------------------

Is there any way to speed up this process?

With kind regards,
 - Riven