Will C2 load all images resources into ram?

Discussion and feedback on Construct 2

Post » Tue Mar 12, 2013 6:49 pm

I'm curious about how C2 handle the resources. Will it load all sprites or other picture images into ram in the beginning? Or is it just load those necessary things for current layout?(e.g. characters and level backgrounds)


I'm trying to constraint the sprite sizes, re-use and scale them up to save up memory for mobile platforms. but since the project grows bigger it will eventually be many sprites.
B
14
S
2
G
1
Posts: 94
Reputation: 2,089

Post » Tue Mar 12, 2013 8:23 pm

I believe it loads everything except for music into memory on first load, however I read that Ashley is working on letting assets load on a per-layout sheet basis.
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Tue Mar 12, 2013 9:00 pm

@boolean I'm almost 100% sure every browser with webgl support has per-layout memory management.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Mar 12, 2013 9:07 pm

@sqiddster: Ah you are right, it looks like it was added in R07 as per this thread. I had no idea!boolean2013-03-12 21:07:23
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Tue Mar 12, 2013 9:26 pm

Where WebGL is supported we load images layout-by-layout. Where WebGL is not supported, usually the browser does something reasonble like evict textures on a last-recently-used basis so that they don't run out of memory. The exception is CocoonJS and directCanvas which load everything in to memory on startup; this is being worked on though.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Wed Mar 13, 2013 10:15 am

Great to know! I hope CocoonJS can support WebGL soon in the future. its been asked for a while:)
B
14
S
2
G
1
Posts: 94
Reputation: 2,089

Post » Wed Jul 03, 2013 5:32 am

Since CocoonJS is launching their iOS webGL support any day now (waiting to pass AppStore approval), does that mean PER-layout resource loading will be automatically compatible?
B
32
S
4
G
1
Posts: 266
Reputation: 2,426

Post » Wed Jul 03, 2013 1:08 pm

@damjancd - I need to check with Ludei, but hopefully.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests