The BIG game challenge (Ejecta memory management on iOS)

Discussion and feedback on Construct 2

Post » Mon Jun 16, 2014 2:49 pm

@MaorKeshet

I suggest you try CocoonJS, while it lacks memory management, it does not have this memory accumulation issue upon changing layout (other user of Ejecta have reported the same bug). So if its <200MB total with CJS, it should be ok on 512mb devices. Not ideal though.

Hopefully later this year, Phonegap + iOS8 will be great.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Mon Jun 16, 2014 3:03 pm

Neither Match or Dots) are on the heavy side of the layouts... these are the games that are less likely to crash actually [sigh]
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Mon Jun 16, 2014 5:43 pm

Silverforce wrote:@MaorKeshet

I suggest you try CocoonJS, while it lacks memory management, it does not have this memory accumulation issue upon changing layout (other user of Ejecta have reported the same bug). So if its <200MB total with CJS, it should be ok on 512mb devices. Not ideal though.

Hopefully later this year, Phonegap + iOS8 will be great.


Thnx Silverforce. As far as I know CocoonJS is limited to 30Mb app size. My completed app will be ~150Mb. Is there a way to wrap such large app with CocoonJS?
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Mon Jun 16, 2014 11:36 pm

MaorKeshet wrote:
Silverforce wrote:@MaorKeshet

I suggest you try CocoonJS, while it lacks memory management, it does not have this memory accumulation issue upon changing layout (other user of Ejecta have reported the same bug). So if its <200MB total with CJS, it should be ok on 512mb devices. Not ideal though.

Hopefully later this year, Phonegap + iOS8 will be great.


Thnx Silverforce. As far as I know CocoonJS is limited to 30Mb app size. My completed app will be ~150Mb. Is there a way to wrap such large app with CocoonJS?


If you request premium access with them, they will up the limit to 200Mb. But just in case, you cannot upload over 50Mb APK to the Google Store currently.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Tue Jun 17, 2014 1:44 am

The memory issue is more with IOS. Seems that most Android devices run on 1gb for a longer period of than IOS has been. Seems that CJS may be worth a shot with all the optimizations that have gone on. I would suggest trying with the launcher and copying an export out.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,038

Post » Tue Jun 17, 2014 7:49 am

jayderyu wrote:The memory issue is more with IOS. Seems that most Android devices run on 1gb for a longer period of than IOS has been. Seems that CJS may be worth a shot with all the optimizations that have gone on. I would suggest trying with the launcher and copying an export out.


@Jayderyu My CJS build crashed upon startup so I'm not going to continue this path. Not sure what you meant about "copying the export out" though. From C2 I exported to CJS and used the cloud compiler.
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Fri Jun 20, 2014 12:28 pm

I took this up with Dominic (lead dev of Ejecta) and Dominic managed to identify an Ejecta bug that was causing WebGL to fail to delete textures. The patch has been submitted to the main codebase (https://github.com/phoboslab/Ejecta). Try re-downloading the files and let me know if memory management is working better.
Scirra Founder
B
399
S
236
G
89
Posts: 24,524
Reputation: 195,380

Post » Fri Jun 20, 2014 12:36 pm

This is great :) Thanks @Ashley.
I already downloaded the xcode master zip, will test and report as soon as I'm back to my desk.
B
12
S
3
Posts: 104
Reputation: 1,655

Post » Fri Jun 20, 2014 1:36 pm

Ashley wrote:I took this up with Dominic (lead dev of Ejecta) and Dominic managed to identify an Ejecta bug that was causing WebGL to fail to delete textures. The patch has been submitted to the main codebase (https://github.com/phoboslab/Ejecta). Try re-downloading the files and let me know if memory management is working better.


Excellent, glad its just a small bug and doesn't require a lot of work to fix!

Looking forward to the results @MaorKeshet !
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Fri Jun 20, 2014 6:57 pm

@Ashley @jayderyu @Silverforce

I run few quick tests with the new ejecta master template. Memory engagement look very effective, I was surprised to find out that the memory usage drops occasionally even while playing a game (!)

Many thanks to Ejecta team and to Ashley :)

https://dl.dropboxusercontent.com/u/8918895/Screenshot%202014-06-20%2014.38.26.png
B
12
S
3
Posts: 104
Reputation: 1,655

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests