Yeh, we were seeing browser memory usage jump from about 40Mb to over
300Mb.

We already split images/resources up (into modules/plugins with
specific functionality e.g. Search, RSSFeed, AppFramework etc, etc) -
for example in one bundle there are 17 images (9 of those are for a
DecoratorPanel, 5 are icons) and one css file. Four of those images
have the RepeatStyle.Horizontal attribute.

For example, when one of the tiled images is 62x60px the sprite ends
up being 163000 px wide when I change it to 500x60px it leaves it out
of the sprite... but the sprite still ends up being over 5000px wide -
still unnecessarily wide.

Is there no way I can tell the compiler "don't make a sprite wider
than 500px"?

Thanks for the replys btw.
Cheers,
Dave

On Jul 9, 2:35 pm, Stefan Bachert <[email protected]> wrote:
> Hi Dave,
>
> 163000x300 pixel is extreme.
> I see two causes
> a) you have such a lot images. Than I would try for splitting up the
> ClientBundle
> b) GWT has a bug which causes huge images as a result. Maybe a) puts
> the compiler in a more stable state
>
> Stefan Bacherthttp://gwtworld.de
>
> On 9 Jul., 13:55, DaveC <[email protected]> wrote:
>
> > Hello,
>
> > This is really just a heads up...
>
> > We are currently developing a large/complex GWT app and are making use
> > of ClientBundle, CssResource and ImageResource. We've run into an
> > issue where by GWT is generating massive sprite images (for instance
> > one is 163,000 x 300 pixels) - which obviously causes memory problems
> > in the compiler, dev mode and in browsers tyring to load/render this
> > image.
>
> > There is something specific about our Widget/CSS structure that is
> > causing GWT to do this - we haven't found out what it is yet (we have
> > widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
> > and some are positioned absolutely and some are relative etc, etc).
>
> > Does anyone know if there is any debug that can be turned on (in the
> > compiler) that maybe hints at what is wrong?
>
> > Or has anyone come across this problem before?
>
> > I was going to submit a bug, but until I can find out what causes this
> > there isn't any point doing that.
>
> > Cheers,
> > Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to