Squeezing out bytes of the jogl jars: GL4bcImpl

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

Squeezing out bytes of the jogl jars: GL4bcImpl

toffegast

Hi guys,

I'm trying to make the (atomic) jogl jars as small as possible for speedy startup of my applet. I managed to gain space by removing the Ubuntu fonts, a dll for mobile platforms and some unused util classes.

Now I'm looking at GL4bcImpl.class. It is huge, and I think I don't need it since I use only GL2. I tried to delete it from the jar but then JOGL says there are no profiles available at all.

Am I right in thinking I don't need it? Is there a way to remove it (and perhaps all GL>2 classes)?

thanks in advance,
Geert.
Reply | Threaded
Open this post in threaded view
|

Re: Squeezing out bytes of the jogl jars: GL4bcImpl

gouessej
Administrator
Hi

No, you need this class, it contains the implementation of the backward compatible profile. Rather remove its equivalent for the forward compatible profile as you probably don't need it yet.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Squeezing out bytes of the jogl jars: GL4bcImpl

Sven Gothel
Administrator
On 07/16/2012 01:45 PM, gouessej [via jogamp] wrote:
> Hi
>
> No, you need this class, it contains the implementation of the backward
> compatible profile. Rather remove its equivalent for the forward compatible
> profile as you probably don't need it yet.

GL4bcImpl is the GL implementation class for all non-ES GL interfaces,
so you need it. This was a decision to save a lot of space, since it
is the containing set of all GL features. Only on mobile we have a GLES2Impl,
which is much smaller.

BTW .. saving space/performance for Applets is not that straightfwd as
you might think. Most important:
  - the least JAR/JNLP files as possible (-> use the *all* packages)
  - compression: provide pack200

However, if you or others find another very useful combination of
packages and reduce a fundamental portion of size, I am listening.

~Sven


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

Re: Squeezing out bytes of the jogl jars: GL4bcImpl

gouessej
Administrator
Sven Gothel wrote
  - compression: provide pack200
The use of pack200 might be counterproductive in some cases. I disable it for TUER and most of the time, the install takes less time than in the past.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Squeezing out bytes of the jogl jars: GL4bcImpl

toffegast
Thanks for the info!