a question of performance/memory

Discussion and feedback on Construct 2

Post » Fri Sep 21, 2012 9:48 pm

Hi evereybody

I'm planning a new game, and since I just started the sprites design process I wonder this: what's better for performance ( I'm planning to make HTML5, but maybe...just maybe mobile)

1. Full animation cycles (walking, idle, jumping.. and so on)
2. Animation for just the moving parts (legs for example) and setting its position to the body "every tick" or with Physics Joints (haven't tried that yet)

There will be 4 - 6 sprites, at the same time, with the same movements, the only difference would be the head

Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,890

Post » Fri Sep 21, 2012 11:02 pm

Number 1. Number 2 is not a nice place to be, will be impossible to get to look good, is a maintenance nightmare, will have worse performance, might conceivably save some memory but is not worth it.

What you're trying to achieve would be better with a pin than with physics, but it's still not worth it. (Sorry just seen this was your plan)

Just use animations - if you have to optimise (and you may not have to) then do so at the end when you know what has to be achieved by it.
B
11
S
4
G
3
Posts: 70
Reputation: 3,071

Post » Fri Sep 21, 2012 11:38 pm

Thanks for the reply!
Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,890

Post » Sat Sep 22, 2012 3:02 am

Physics is a very CPU intensive behavior, because it is running a simulation of a realistic physics world. If it's ever physics vs. no physics, no physics will always be faster.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat Sep 22, 2012 4:02 am

I try to make physic game for mobile, and the FPS drop so crazy when i use 6-10 physic object.
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Sat Sep 22, 2012 5:30 am

Thanks again!!
Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,890


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests