Reducing CPU intensity of physics games

Get help using Construct 2

Post » Sat Jun 14, 2014 6:12 pm

Hi everyone,

So I've made my little physics game and it's quite fun however when I export it to my iPad it slows down to unplayable levels. The game basically involves bouncing a physics ball between different objects to score points. My game has been simplified as much as possible and now it simply cannot be simplified any further without become boring (i.e too few physics objects). I should mention that at the moment the ball, the blocks and the borders are all physics objects however I only really need the ball to be a physics object but I can't seem to make a physics ball bounce off the other objects without them being physics objects too.

Is there any fix for this?

Any way to make a physics object bounce off a solid object?

Are there any other physics engines I could use which are less CPU intensive so the game is playable on iPad?

How come games like Angry Birds are playable on mobile phones when they seem to incorporate quite a few different physics objects simultaneously?

Sorry about all the questions! Im just really excited cause I've just about finished my game however now I'm a bit scared that it will never make it off the computer and onto mobiles and tablets.

Hope somebody can help :)
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Sat Jun 14, 2014 6:46 pm

The bullet behavior has the ability to bounce off solids. That will be far less CPU intensive than physics.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Sun Jun 15, 2014 2:16 am

Hi Arima,

Thanks for the reply. I need physics behavior in the ball as Im using impulses etc. to control it. Is there a way to have bullet behavior and physics at the same time?

I tried it but it looks like they are not compatible.
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Sun Jun 15, 2014 4:53 pm

Not really, no. You could use some math to calculate the effect on the ball's speed and trajectory and set the speed and angle of movement of the bullet behavior, but that's all I can think of.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Sun Jun 15, 2014 6:53 pm

There is a "set stepping iterations" action of the physics behavior that you could try to fiddle with to reduce the accuracy but increase the speed of the physics simulation.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507


Return to How do I....?

Who is online

Users browsing this forum: batto, Google [Bot] and 21 guests