immobile Physics performance

Get help using Construct 2

Post » Tue Apr 16, 2013 8:59 am

Hi, I'm curious, Do objects with the Physics attribute set to immobile use as much processing power as objects using Physics not set to immobile? I have an object using physics and for it to bounce off stuff I have to set the physics attribute to just about everything else so instead of say one object with Physics I need 50 or so.

I've read just about everywhere to keep Physics to an absolute minimum yet I'm in a catch 22 where I only need one object to have physics but am forced to use many. Any tips suggestions would be welcome or is it really necessary if immobile physics objects hardy use anything?

Thanks,
Jay
B
18
S
7
G
5
Posts: 31
Reputation: 4,364

Post » Tue Apr 16, 2013 6:59 pm

Hi,

I would imagine its only moving objects which create demand on the processor.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Wed Apr 17, 2013 7:41 am

I hope so but they still have physics attributes attached to them so would there still be demand every cycle or only during the moments they are interacted with by other moving physics objects i.e. ball bouncing off a wall?
B
18
S
7
G
5
Posts: 31
Reputation: 4,364

Post » Wed Apr 17, 2013 9:09 am

Hi,

again i dont know for sure. But there are no calculations being performed on objects which are not moving or interacting with anything else. Unless your game is for a mobile platfom then its not a massive issue anyway.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Wed Apr 17, 2013 9:23 am

ok thanks, yeah it's for mobile phones, works great on my RAZR i with Phonegap but on others like the Galaxy 2 lags like hell to the point it's unplayable. I read the blog post about Android 4+ using Chrome which is possibly why it's better on my phone. I'm just looking at ways to optimize it as it's difficult to tell testing on my phone as it runs ok and I there are no other phones readily available for me to use as test devices.
B
18
S
7
G
5
Posts: 31
Reputation: 4,364

Post » Wed Apr 17, 2013 11:32 am

I did some tests with this a while back and immobile physics seem to impact frame-rate as much as a non-physics object.

Have you tried CocoonJS, it's much better performance than Phonegap.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Apr 17, 2013 12:01 pm

I haven't tried CocoonJS I'll give it a try later, thanks
B
18
S
7
G
5
Posts: 31
Reputation: 4,364


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Artpunk, Bad Wolf, cesisco, davides, NRABrazil, Vallar, WhosWho and 27 guests