How do I Improve My FrameRate?

Just started using Construct 2? Post your questions here

Post » Sun Jan 22, 2017 9:41 pm

I've been working on a game that will sometimes have up to 300-400 objects with the bullet behavior moving in straight lines. They're destroyed as soon as they leave the relatively small layout and whenever they hit something in the layout, so that's not the problem. Ideally I want at least 30fps, but often times 15-20fps is the case, leading to a "slow motion" effect that I'd rather avoid.

Any tips on how to improve the frame rate?

The bullets have four points in their collision matrix and move at 200 pixels per/sec.

Any tips are appreciated.
B
22
S
14
G
16
Posts: 16
Reputation: 10,437

Post » Mon Jan 23, 2017 8:41 am

That many objects shouldn't really be causing such a slowdown, but without seeing what you've done we can only guess.

For example, I just quickly added 500 bullet objects to a Layout and the fps was a constant 60 FPS.

What does debug profiling have to say?

Maybe best to post your .capx for all to to check for you.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,416
Reputation: 59,518

Post » Mon Jan 23, 2017 7:49 pm

zenox98 wrote:That many objects shouldn't really be causing such a slowdown, but without seeing what you've done we can only guess.

For example, I just quickly added 500 bullet objects to a Layout and the fps was a constant 60 FPS.

What does debug profiling have to say?

Maybe best to post your .capx for all to to check for you.



Unfortunately the .capx is for my now completed game on the arcade and I don't really want to post the .capx because I worked really hard on it ;~;

Other possibilities is that the hero is a physics object with a linear dampening of 50... World gravity is set to 0, and on W is down, a forward force of 100 is applied, with A and D rotating it. (I wanted it to resemble the car movement)
B
22
S
14
G
16
Posts: 16
Reputation: 10,437

Post » Mon Mar 06, 2017 6:19 pm

Hi Lightside,

It's really hard to debug performance without having the actual events.

But you should read the official "performance tips" section in the C2 manual if you haven't already. I hope that helps.

Performance tips - Manual
https://www.scirra.com/manual/134/performance-tips
B
10
S
3
G
2
Posts: 8
Reputation: 1,548


Return to Beginner's Questions

Who is online

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