Situation with loading levels only when needed?

Discussion and feedback on Construct 2

Post » Thu Aug 15, 2013 12:12 pm

Hi everyone,

I think, last I knew, at least with CocoonJs export, the whole game is loaded all at once, and if that exceeds the ram (heap) of the device, it won't run.

Is this still the case.. If so, any clues as to when that might be improved? (meaning when The game will be able to load one frame at a time as needed)

I'm working on fairly large games for my clients and they'll never make it onto Ipod touches etc if this remains the case.

thanks,
Mike
B
49
S
9
G
4
Posts: 425
Reputation: 7,037

Post » Thu Aug 15, 2013 7:53 pm

Cocoonjs implemented webgl, which should improve the situation by using layout by layout loading. There are currently some fps issues with it on iOS right now though.

I agree an option to wait on loading anything from disk until loading the layout that heeds it would be nice.
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,744

Post » Fri Aug 16, 2013 12:34 pm

I don't quite understand your response, Arima...

It seems like you said it uses webgl, which DOES load each level (layout), but then you say "an option to wait on loading anything from disk until loading the layout that heeds it would be nice. ", as though it does NOT load per layout....

So, which is it?

Are you saying it only loads one event sheet at a time, but all images and sound files still get loaded all at once?

thanks,
Mike
B
49
S
9
G
4
Posts: 425
Reputation: 7,037

Post » Fri Aug 16, 2013 5:04 pm

I'm actually not 100% sure of how it works, but I think it's like this:

At startup, all code and images are loaded into memory, but the images are left in a compressed state.
At the start of a layout, necessary images are decompressed for rendering and unnecessary decompressed images are removed from memory, but their compressed versions remain.

I could be wrong about that - best to get @Ashley or @Ludei to comment.Arima2013-08-16 17:05:18
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,744


Return to Construct 2 General

Who is online

Users browsing this forum: Snowmany and 3 guests