How do I fix cocoonJS frame rate stutter?

Get help using Construct 2

Post » Fri Apr 18, 2014 9:02 pm

I get about 58FPS with my game on my samsung galaxy s4, but there is framrate stutter where it pauses for a very split second on creation of a 128x128 sprite, and collision on that sprite. any ideas?
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Fri Apr 18, 2014 9:58 pm

Can't think of how to fix the collision stutter - I've never found a way myself. For the creation of the sprite hesitation, could you create it somewhere else and just move it into view instead?
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,188

Post » Fri Apr 18, 2014 10:21 pm

ah man, that's kinda game breaking for me. i was thinking on doing that too, but havent tested it. I get great FPS, just not stable. Im not using physics or anything like that either
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Sat Apr 19, 2014 12:47 am

Create an offscreen buffer of all sprites. Your stutter is probably coming loading an image.

As for collision. I would suggest auditing all your collisions checks. Minimize and efficient the checks. Then test them one by one to find which specific one that happens. Then check each action in the collision events to find out what's causing the stutter.

It's possible you also might just be hitting memory limits so even offscreen sprites might not help
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013


Return to How do I....?

Who is online

Users browsing this forum: el3um4s, TylerJS and 9 guests