platform behavior bug?

Discussion and feedback on Construct 2

Post » Thu Oct 31, 2013 10:24 pm

Anybody noticed how much fps the platform behavior drains? I made a test on my iphone5 with pure moving sprites {just animation} which was about 61 fps via cocoonjs and when i turned on their platform behaviors it sank to 24! There are about 11 enemies/sprites on my layout
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Thu Oct 31, 2013 10:33 pm

I did notice this!
I always thought it is because the Platform Behaviour is constantly figuring out angles with SIN and COS, (which makes even old calculators lag badly when using lots of those in one equation), but having it figure out angles, 60 times a second, multiplied by the amount of enemies, it comes to about 600 times a second!
Though that's just an idea, I may be very wrong. Though if right, there should be a way to disable the angle stuff if the angle is 0.
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Thu Oct 31, 2013 10:46 pm

Jase00 yeah im sure the colisions take some fps but i didnt expected such a drop. For now i cant target iphone as the platform. I will try to use the game closure but so far its quite a bit difficult. Hopefuly when joannesalfa finishes the tutorial, i will be able to move on. There should be some more options to control the platform behavior.
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Thu Oct 31, 2013 10:55 pm

i dont have such problem with platform & cocoonjs on iphone5, what version of C2 are u guys on??
Doo Doo Diving App Store | Google Play

Donut Pirate App Store | Google Play
B
17
S
2
G
1
Posts: 195
Reputation: 1,578

Post » Thu Oct 31, 2013 10:58 pm

hollowthreat i have release 146, 64bit
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Thu Oct 31, 2013 11:09 pm

i'm also on r146, using platform left,right,jump, pinned 5 animated sprites on the plateform box, running solid 60fps on iphone5.

so im guessing, it could be something else conflict with platform? as i dont have such problem
Doo Doo Diving App Store | Google Play

Donut Pirate App Store | Google Play
B
17
S
2
G
1
Posts: 195
Reputation: 1,578

Post » Thu Oct 31, 2013 11:32 pm

could the size of the enemy sprite cause this? i have 150 x 150 px. Also im using families for the enemies
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Fri Nov 01, 2013 12:15 am

that shouldnt be the problem, its not even big.

what about collision points? how many points does your player & enemy have?
Doo Doo Diving App Store | Google Play

Donut Pirate App Store | Google Play
B
17
S
2
G
1
Posts: 195
Reputation: 1,578

Post » Fri Nov 01, 2013 11:21 am

hollowthreat you mean imagepoints? 3 for each enemy.
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Fri Nov 01, 2013 11:22 am

ah sorry you mean collision box. 4 points...
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests