Performance improvements with R144

For developers using the Construct 2 Javascript SDK

Post » Mon Sep 16, 2013 11:26 am

@Ashley
[quote]Form controls (Text Box, Button and List) engine CPU usage now significantly reduced, especially when using lots of controls.[/quote]Could you tell me how did you improve the performance with these controls?
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Mon Sep 16, 2013 12:38 pm

They used to make jQuery and DOM calls every tick even if they weren't moving or changing. I was surprised how much CPU this consumed in some browsers, I thought it would be more efficient. Now a form control that isn't moving doesn't make any jQuery or DOM calls.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Mon Sep 16, 2013 5:06 pm

@Ashley

I think this broke compatibility with cocoonjs Launcher. I still have Jquery error in R144.2 with cocoonJs launcher when test via wifi. If I exported to zip file it is ok. Strange right?
B
75
S
22
G
14
Posts: 389
Reputation: 12,224

Post » Mon Sep 16, 2013 5:08 pm

@tumira - form controls have never been supported in CocoonJS.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Mon Sep 16, 2013 5:32 pm

@Ashley

Sorry for that. But Ludei did add partial support for DOM element in CocoonJS( maybe since version 1.3). So I taught that if you change something about how the DOM element works it might causes the JQuery bug that I have since R144.


Copy paste from ludei

v 1.3

Improved HTML parser.
DOM structure is read and created now although styled divs are not rendered. You can specify the canvas tag now and even put it inside a div tag. Ludei also supports an attribute for the main canvas to be a screen canvas by putting the attribute screencanvas=true to the canvas tag (it won't affect the execution on any regular non-CocoonJS browser)
B
75
S
22
G
14
Posts: 389
Reputation: 12,224


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests