fredsa / forplay

Automatically exported from code.google.com/p/forplay
Apache License 2.0
12 stars 4 forks source link

Bundling image loading #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Thanks to Firebug, I realized that each loading of a different image leads to a 
new request sent, to retrieve the image.

GWT has a nice mecanism to bundle images, as base64 data into the JS for small 
images, or has a big bundle image that is then split for bigger images. This 
leads to faster image downloading, hence faster game starting.

I don't know if it's already on the roadmap, or even possible, but having this 
feature automatically handled by ForPlay would be great.

http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#ImageReso
urce

Original issue reported on code.google.com by py.ricau on 5 Jun 2011 at 2:55

GoogleCodeExporter commented 9 years ago
We went this route to begin with but ended up with multiple copies of the data 
uri in memory, leading to lots of bloat. In the end manual sprite sheeting 
turned out to be a better approach.

Original comment by pdr@google.com on 7 Jun 2011 at 3:17