How to Optimize a Game To Satisfy Chrome Audit?

Get help using Construct 2

Post » Sun May 06, 2012 9:06 pm

Hello All, & thank you for looking.

On my personal pc (gaming rig) my game runs great but, on my gf's laptop, not so much. So, I audited my game in Chrome and it came up with a bunch of stuff I could do to optimize my game and make it faster - the problem is I don't know how to implement any of Chromes suggestions.

For instance:

The following resources are missing a cache expiration. Resources that do not specify an expiration may not be cached by browsers:
   I've read a bunch of articles on what this means and how to fix it. Mainly, the jist is to add a header to something (IDK what) and/or add a .htaccess file to my directory. I did that with no luck.

Can anyone point me in the direction of a tutorial or an example of how to do this with Construct2/html5 in mind?

Thank you for your time.gamecherry2012-05-06 21:06:58
B
23
S
7
Posts: 79
Reputation: 2,215

Post » Sun May 06, 2012 10:32 pm

It sounds like you're looking at a website optimiser. That's not really applicable to a game. For example we use the HTML5 AppCache to save everything to disk so caching should not be a problem at all. I'd just read through performance tips and apply those.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun May 06, 2012 10:43 pm

Thank you for your response Ashley,

I don't know what else to do. My game is only 335k and runs like crap on my kindle and my gf's laptop(dual core, 4gb Ram, Vista). I don't see a reason why this should be.
Firefox runs my game a little quicker than Chrome does on the laptop but it still hangs and runs at half speed. I've applied all of the tips from the performance blog/post without any perceivable difference. I'm about to pull all of my hair out a set fire to my living room.
B
23
S
7
Posts: 79
Reputation: 2,215

Post » Mon May 07, 2012 6:16 am

Hmm, do you have WebGL enabled in your game? If so, are the browsers you're testing through WebGL enabled?

You can check here:
http://doesmybrowsersupportwebgl.com/
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Mon May 07, 2012 2:53 pm

@gamecherry - have you tried updating the graphics drivers on the laptop?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon May 07, 2012 10:29 pm

   Thank you for the concern Ashley, I very much appreciate it. It's the little things that elude me sometimes. After searching for quite awhile I came across this link on google: http://www.scirra.com/blog/73/introducing-the-graphics-driver-updater-utility (Ashley, you seem to be everywhere)
   Upgrading the graphics card had not occurred to me at the time because the laptop is more than powerful enough to run a simple web game - or so I thought. After running the Catalyst update(ATI 1025X or something like that) the game did run quicker but, still not full speed. I then stopped a bunch of services from running in hopes of squeezing out some extra power and made sure my browsers were up to date and even went to some other websites to play their html5 games for a comparison - the laptop just isn't robust enough for html5 gaming.
   I tested my game on my pc, my sons gaming pc, the pcs at school and all worked without issue. Clearly, the problem is not Construct. However, it does raise the issue of "how fast does a pc need to be in order to run html5 games at full speed?" It seems that processor speed and RAM amount/speed are not the only mitigating factors, that a "decent" 3d graphics card is also needed, even if the html5 game is simple & 2d.
   Has anyone performed any benchmarks, not on Construct2 but, on html5 gaming in general? Is there a minimum system requirement?

Thank you again for your time.gamecherry2012-05-07 22:43:12
B
23
S
7
Posts: 79
Reputation: 2,215

Post » Tue May 08, 2012 5:32 am

[QUOTE=gamecherry] Thank you for your response Ashley,

I don't know what else to do. My game is only 335k and runs like crap on my kindle and my gf's laptop(dual core, 4gb Ram, Vista). I don't see a reason why this should be.
Firefox runs my game a little quicker than Chrome does on the laptop but it still hangs and runs at half speed. I've applied all of the tips from the performance blog/post without any perceivable difference. I'm about to pull all of my hair out a set fire to my living room.[/QUOTE]

Is this Kindle or Kindle Fire? I have a Fire and everything seems to run slow on it.

Oh, and doesn't Vista have problems with drivers? Bob Thulfram2012-05-08 05:34:04
Check out my HTML5 Firefox OS Game Programming and Game Playing blog at http://firefoxosgaming.blogspot.com/ and my book on Amazon at http://www.amazon.com/dp/B00IZUYIGO. I wrote a newer post on using Construct for Firefox OS at http://firefoxosgaming.blogspot.com/201 ... -game.html.
B
16
S
4
G
4
Posts: 181
Reputation: 3,837

Post » Tue May 08, 2012 10:01 am

I'd also point Vista out in that case.
In the bugs section, some of the weirdest bugs reported were under this OS.

The problem after is I don't know how well win7 would perform on your GF's laptop but OS-wise, that's the OS I'd recommand to comfortably play HTML5 games.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: christina and 21 guests