Very slow frame rate.

Discussion and feedback on Construct 2

Post » Mon Jul 06, 2015 2:30 pm

Hi, hoping to find some help here,
I am previewing my game on my Samsung tablet and it is only running at around 2-3 frames per second.
On my computer it is 60.
I now my computer is much more powerful but 2-3 frames is snail pace.
It is not a big game just one sprite moving horizontal at bottom of screen and It is collecting sprites dropping down from top.
Even when I made it into and APK it was no better.
Any ideas please.
Cheers.
B
34
S
3
G
1
Posts: 46
Reputation: 1,670

Post » Mon Jul 06, 2015 3:00 pm

When previewing, use the debugger, check the profiling tab, and keep an eye on the thing that is taking up most % cpu usage.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Mon Jul 06, 2015 4:15 pm

Hi, lennaert, tried your suggestion and one by one turned off various parts of the game and eventually just left the player sprite and the left and right arrows to move the sprite. Speed only went up to around 8 fps.
I have also just tried a completely blank screen and that runs at only 25fps!
On computer 60+ fps.
Is it the Samsung tab do you think!
B
34
S
3
G
1
Posts: 46
Reputation: 1,670

Post » Mon Jul 06, 2015 4:20 pm

Hmm, could you post a capx ?

I wouldn't mind taking a look.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Mon Jul 06, 2015 4:34 pm

If by "Samsung tablet" you mean one of the original Galaxy Tab Series from 2010/2011:
yes, it won't get any better, unfortunately. Those are too weak for HTML5.

If it's something new like a Galaxy Tab 4, there may be a problem somewhere in your project, a capx would indeed help.
B
75
S
28
G
32
Posts: 481
Reputation: 19,713

Post » Mon Jul 06, 2015 4:47 pm

Matthew64 wrote:Hi, hoping to find some help here,
I am previewing my game on my Samsung tablet and it is only running at around 2-3 frames per second.
On my computer it is 60.
I now my computer is much more powerful but 2-3 frames is snail pace.
It is not a big game just one sprite moving horizontal at bottom of screen and It is collecting sprites dropping down from top.
Even when I made it into and APK it was no better.
Any ideas please.
Cheers.

dont use any effects and do things every x sec insted of every tick like every 0.1 or 0.2 sec
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Mon Jul 06, 2015 5:17 pm

Hi to the 2 replys here is the link to capx
Thanks
https://www.dropbox.com/s/sbw49d4ow0t1r ... .capx?dl=0

PS my tablet is a SAMSUNG Tab 4
Last edited by Matthew64 on Mon Jul 06, 2015 5:34 pm, edited 1 time in total.
B
34
S
3
G
1
Posts: 46
Reputation: 1,670

Post » Mon Jul 06, 2015 5:31 pm

Try removing the physics on the banana, and just use the bullet speed and acceleration to mimic what your doing now.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Mon Jul 06, 2015 6:00 pm

Hi Lennaert, if this helps I have just downloaded an example capx from a tutorial which is a physics game called cannonball this also runs very slowly on my tab so I am thinking it is the tab not what I am creating.
Before I got the Samsung I had a HP tab which you would presume is not as good but I didn't have these problems.
B
34
S
3
G
1
Posts: 46
Reputation: 1,670

Post » Mon Jul 06, 2015 6:02 pm

It should run fine on a tab 4 yeah, even with physics ...

Perhaps something faulty ?
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Next

Return to Construct 2 General

Who is online

Users browsing this forum: rbailey83 and 11 guests