Can my game run smoother?

Get help using Construct 2

Post » Tue May 20, 2014 10:13 am

Hi Everyone :)

I have been using Construct for a few months and my first game is near completion!
One thing that i don't understand is why my game is not super smooth..
I started a new layout and tested this code, (similar to what is in my game)

every 0.5 seconds: Create Object SPRITE on X co-ordinate choose (100,200,300,400 etc..) and Y co-ordinate 0

SPRITE has Destroy outside layer and Bullet, and is moving down the layout. The speed is set to about 800
on a 720 x 1280 screen (test phone is a galaxy S4 - 1080 x 1920), Both 9:16.

when i test this on my phone using cocoonjs launcher it runs good but occasionally get a bit choppy for a split second, i expected
it to be like ultra smooth since it is so basic and runs at a constant 62fps.

does anyone know why this is or have a similar experience?
B
2
Posts: 4
Reputation: 178

Post » Tue May 20, 2014 10:56 am

Maybe you could test using a smaller layout size (therefore smaller images as well), and set the game to fit the screen useing letterbox scale.


It could be easier to help if you post a screenshot of your event sheet
B
12
S
6
G
3
Posts: 101
Reputation: 3,930

Post » Tue May 20, 2014 11:03 am

The way things are right now with wrapped html5 this is to be expected. Even if you have an optimized game which runs relatively constant 60fps, you will have those micro-glitches, that's just how it is.
B
72
S
28
G
32
Posts: 477
Reputation: 19,640

Post » Tue May 20, 2014 11:05 am

ok I will test that.

I just used that single code in a new file to test, it runs about the same as my game, as for my game, after several seconds it stays at 62 fps but still has moments of slight choppyness
B
2
Posts: 4
Reputation: 178

Post » Tue May 20, 2014 11:17 am

Eisenhans wrote:The way things are right now with wrapped html5 this is to be expected. Even if you have an optimized game which runs relatively constant 60fps, you will have those micro-glitches, that's just how it is.

I was worried id get this kind of answer...
B
2
Posts: 4
Reputation: 178

Post » Tue May 20, 2014 12:17 pm

Well, depending on the game, this isn't a problem at all.

Most games that can be made in a sensible, optimized manner right now do not really suffer from that. The only case where it is really annoying is when you need super-smooth scrolling. It will be a while until that type of game can be expected to run on a really wide range of devices, if created with wrapped html5. Those you can safely do these days, single screen action games and puzzles, are quite forgiving when it comes to those micro-glitches.
B
72
S
28
G
32
Posts: 477
Reputation: 19,640

Post » Tue May 20, 2014 1:54 pm

Would using crosswalk instead of cocoon make a difference?
B
2
Posts: 4
Reputation: 178


Return to How do I....?

Who is online

Users browsing this forum: Sparkz and 1 guest