Cacoonjs Lags

Discussion and feedback on Construct 2

Post » Thu Jun 20, 2013 11:00 pm

Hi everyone, i am makeing simple tetris clone game for iphone and faced with strange situation. The game compiled with cacoonjs or intel xdk, runs about 10 times slower (around 6-10 fps), then its html5 version in phone's browser(60-65fps).
B
5
Posts: 10
Reputation: 320

Post » Thu Jun 20, 2013 11:18 pm

Very odd...

Do you mind if you share a .capx so I can research about this performance with my iPod 4?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Fri Jun 21, 2013 12:00 am

Sorry joannesalfa, the game is still in progress and there are some weird techics that i used which i don't whant people to see.
B
5
Posts: 10
Reputation: 320

Post » Fri Jun 21, 2013 12:23 am

Cocoonjs isn't as fast at executing code as safari is on iOS, so that might be the problem. Try disabling parts of your code and retesting to get an idea of what's causing the performance hit, then try to find ways to reduce the CPU use. If that doesn't work, try making objects or layers invisible to see if it's the rendering.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Fri Jun 21, 2013 12:26 am

www.4url.ru/15741

B
5
Posts: 10
Reputation: 320

Post » Fri Jun 21, 2013 12:39 am

yes i tryed to optimize scene and even doubled the speed, but its steel slow. I can go further but i want some cool fetures that porobably are a bit memory expensive. I expected up to 1000% speed gain as cacoons promised)))
B
5
Posts: 10
Reputation: 320

Post » Fri Jun 21, 2013 3:08 am

It runs fine on my iPod 4, it seems having a lot of objects with collision checks would cause biggest fps dropdown, well, you should replace collision to array or some coordinaces like distance.

I developed another diamond dash game with help of R0j0Hound.

This game is not using collision to connect blocks Joannesalfa2013-06-21 03:09:27
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Fri Jun 21, 2013 3:34 am

Yes there is a lot of collison checks, but i gues not too many if it runs on 60 fps in safari. actualy i don't know how to use arrays and stuff like that. its my first game, so thanks i'll din into arrais.
B
5
Posts: 10
Reputation: 320

Post » Fri Jun 21, 2013 4:07 am

Ah, by the way, when i turn off all that neighbor detecting collisions nothig changes,it stil runs slower and slower in cocoonjs. with every new piece it looses 5-10 fps
B
5
Posts: 10
Reputation: 320

Post » Fri Jun 21, 2013 4:26 am

Did you turn collision to off to every boxes? then you're getting low fps... it's another weird odd...

We can't help you if you don't provide .capx, I know you said you won't show your weird tech to people, but there are some developers don't care about your weird code, we would clean the mess, no need to embarass.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests