0 Favourites

[SUGGESTION] merging images into one big sheets!

  • Hello, I'm just a bit curious if this really effect on HTML5 speed performance Ashley ?

    I just compared the HTML5 output from C2 and GMHTML5, i remembered i read somewhere in GMC, when Mike Daily said this images sheet method will boast performance better, because the image will load once than loading them each one separately ?!

    this just a test I did for the same images, one exported from C2 and the other from GM-HTML5:

    C2 exported html5 images:

    <img src="http://dl.dropbox.com/u/32615680/01Images/c2_export.png" border="0" />

    GM-HTML5 exported images (images merged like one sheet when export HTMl5):

    <img src="http://dl.dropbox.com/u/32615680/01Images/ghtml5_export.png" border="0" />

    the question is, does this method really improve HTML5 performance than the regular C2 method ? how about add this feature to C2 ?

    sorry for my English, it's not my native language

    regards~

  • This is already on our todo list. It will probably reduce the file size a little further, but I'm not sure about run time performance, I'd need to profile it before and after. On the one hand there may be more JS overhead and the GPU cache doesn't work so well with large textures. On the other hand it doesn't need to change texture much. So I can't really say until we implement it.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • It's going to be a bit faster to load (less handshakes with the server to get files), but at least on mobile, it's going to kill performances for every dimensions over 1024 (several 1024x1024 tiles are then going to be created for the GPU by the browser).

  • Can't wait to test that feature with C2, Thanks Ashley :)

    I forgot to say, that feature when implemented to GameMaker, some image manipulation function became broken, like image_index, hope that wont be an issue with C2 events logic for images, hopefully :).

  • Thanks for your post<img src="http://www.50centloseweight" border="0" />

  • <img src="http://www.50centloseweight" border="0" />disagree

  • This makes me wonder, if you just need a single image from that sheet (for some freak reason), the system will have to load the WHOLE file.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
164 38,105
totoe's avatar
totoe
Unread hot topic
132 10,993
Burvey's avatar
Burvey
Unread hot topic
202 26,919
The Mnk's avatar
The Mnk