Jump to content

Game is so slow


Kastor
 Share

Recommended Posts

  • Administrators

I haven't been able to duplicate any slow performance issues personally, though I have gotten about 100 DMs on Discord about it.

I'm not exactly sure what to do; I'll chat with ss23 as he's more of an expert in this department than I am.

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

  • 2 weeks later...
12 hours ago, Inst said:

Is it really that expensive to upgrade the cloud host a tier during wartime?

I presume cloudflare is being used, so caching ought to be fine. At that point you have two potential bottlenecks left: PHP and the database backend. PHP you can fix by using a caching compiler such as HipHopVM ( https://github.com/facebook/hhvm/wiki ) or Phalanger ( https://archive.codeplex.com/?p=phalanger , looks out of dateish at this point though?). But I suspect database handling might be a bigger issue. Have you checked that none of the queries cause blocking behaviour on the entire table? Might need to restructure the queries or database to make significant page load speed gains.

  • Upvote 1

I solemnly swear Lord of Darkness is up to no good.

Link to comment
Share on other sites

On 11/1/2018 at 4:16 PM, Bart said:

I presume cloudflare is being used, so caching ought to be fine. At that point you have two potential bottlenecks left: PHP and the database backend. PHP you can fix by using a caching compiler such as HipHopVM ( https://github.com/facebook/hhvm/wiki ) or Phalanger ( https://archive.codeplex.com/?p=phalanger , looks out of dateish at this point though?). But I suspect database handling might be a bigger issue. Have you checked that none of the queries cause blocking behaviour on the entire table? Might need to restructure the queries or database to make significant page load speed gains.

Considering people run API requests like madmen during global wars, it's really not surprising.  @Sketchy said that it was working at about 30% speed or something, so it took a lot longer than usual to compile data. I don't know much but it does seem like that could be the trouble.

Link to comment
Share on other sites

On 11/1/2018 at 7:16 PM, Bart said:

I presume cloudflare is being used, so caching ought to be fine. At that point you have two potential bottlenecks left: PHP and the database backend. PHP you can fix by using a caching compiler such as HipHopVM ( https://github.com/facebook/hhvm/wiki ) or Phalanger ( https://archive.codeplex.com/?p=phalanger , looks out of dateish at this point though?). But I suspect database handling might be a bigger issue. Have you checked that none of the queries cause blocking behaviour on the entire table? Might need to restructure the queries or database to make significant page load speed gains. 

tenor.gif?itemid=3567349

Link to comment
Share on other sites

  • 2 months later...

While I know this thread has been death for a while, we noticed another common optimisation feature isn't implemented: removing whitespace from CSS & JS files, shortening variable names, merging the files for transfer (makes HTTP's GZIP more efficient), etc. You can get the httpd to do it automatically if you configure it correctly (e.g. using Google Minify)  An example on how to setup it up can be found here: https://www.newmediacampaigns.com/blog/Automatic-file-minification-on-nginx 

Might also be a good idea to run a code profiling tool like Zend Profiler to remove bottlenecks from the code: http://files.zend.com/help/Zend-Studio/content/profiling.htm 

  • Upvote 2

I solemnly swear Lord of Darkness is up to no good.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.