Pre-baking sprite sheets for faster preview?

Discussion and feedback on Construct 2

Post » Mon Sep 15, 2014 2:07 pm

Yo. I've been wondering if it's possible for construct to bake sprite sheets for faster preview times before compiling the main build? Looking for options on how I can improve load times during preview.

Thanks
B
35
S
10
Posts: 390
Reputation: 3,278

Post » Tue Sep 16, 2014 2:32 pm

Don't think you can. Would be great if you could though. I'm getting about fifteen seconds of waiting time for previews right now and I have many more animations to add so..

+1 for this feature.
B
40
S
16
G
6
Posts: 543
Reputation: 7,649

Post » Tue Sep 16, 2014 8:31 pm

I'm not the only one! *high five*
B
35
S
10
Posts: 390
Reputation: 3,278

Post » Tue Sep 16, 2014 10:13 pm

There's a plugin that can load animations after game has loaded, you can try experimenting with that

http://c2rexplugins.weebly.com/rex_spri ... oader.html
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Tue Sep 16, 2014 11:40 pm

+1

It makes no sense to break spritesheets down into individual frames/images in the first place, especially when C2 compiles them back into sheets upon export. It's too late now but if we had an animation system like Pyxel's that'd be awesome. You could change the source sheet as well for multiple characters / costumes.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Wed Sep 17, 2014 7:34 am

Well I really enjoy the user-friendly aproach of importing individual frames. As I export most my animations out of after effects as PNG sequences, making sprite sheets manually is just a hassle. However I would really like the possibility to get these frames turned into sheets while working in the editor. Too much precious time is lost loading the preview again and again.
B
35
S
10
Posts: 390
Reputation: 3,278

Post » Wed Sep 17, 2014 11:54 am

It makes some things a little easier I suppose, but ultimately is kind of limiting. Truth be told it's the same animation system as Klik 'n Play had...20 years ago. Besides, any decent image editing program can compile sheets for you (though Pyxel is still the best for animation/sheets).
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Wed Sep 17, 2014 1:48 pm

Construct 2 does not build spritesheets on preview, only export. So you can rest assured the time spent building spritesheets when pressing preview is exactly zero.
Scirra Founder
B
402
S
238
G
89
Posts: 24,644
Reputation: 196,095

Post » Wed Sep 17, 2014 3:41 pm

Ashley wrote:Construct 2 does not build spritesheets on preview, only export. So you can rest assured the time spent building spritesheets when pressing preview is exactly zero.



Seems to be a slight misunderstanding. If we say I have 100 frames of animation as 100 individual images. Wouldn't that take longer to load in preview than 10 sprite sheets containing 100 frames in total? I would imagine it speeding loading up if there's a ton of image loading requests on boot up?

If this is not the case, what are the most dominant factors that make loading in a compiled build (node webkit) that much faster than preview?

Hope you can clarify.
B
35
S
10
Posts: 390
Reputation: 3,278

Post » Wed Sep 17, 2014 4:09 pm

I think any speed up from spritesheeting on preview would be more than offset by the time spent building the spritesheets. Previewing is local so there is virtually zero latency and unlimited bandwidth, so I doubt there is much extra cost from having to make extra HTTP requests, plus most browsers can decode images in parallel on all CPU cores.

I'm not sure what you're seeing when you talk about slow preview: if you're seeing a progress bar in the Construct 2 editor, then it's most likely building the JSON data for the project, but if you're seeing a progress bar in the browser itself, then it's most likely downloading and decoding images (as well as sounds if you have 'preload sounds' enabled).

I find Node-webkit specifically can take a couple of seconds to start up, and you can avoid that by treating it like a browser - leave it open and press preview again in C2, and it will refresh the same instance of node-webkit rather than starting a new process.
Scirra Founder
B
402
S
238
G
89
Posts: 24,644
Reputation: 196,095

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests