[SUGGESTION] merging images into one big sheets!

Discussion and feedback on Construct 2

Post » Tue Apr 03, 2012 12:20 pm

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:



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



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~


B
22
S
3
G
5
Posts: 141
Reputation: 5,117

Post » Tue Apr 03, 2012 3:19 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Tue Apr 03, 2012 10:00 pm

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).
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Wed Apr 04, 2012 5:43 am

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 :).prinsukun2012-04-04 06:04:15
B
22
S
3
G
5
Posts: 141
Reputation: 5,117

Post » Wed Apr 04, 2012 7:49 am

Thanks for your post
B
2
Posts: 2
Reputation: 404

Post » Wed Apr 04, 2012 7:50 am

disagree
B
2
Posts: 2
Reputation: 404

Post » Wed Apr 04, 2012 12:17 pm

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.
B
25
S
8
G
7
Posts: 184
Reputation: 6,040


Return to Construct 2 General

Who is online

Users browsing this forum: Televangelist, TRMG and 5 guests