Jump to content

Server performance around contest/league end


1tst1
 Share

Recommended Posts

Since the time change (as I was sleeping before), server performance really drops around contest/league end times. Just now a single villian fight took between 15 and 25 second for the server response. You are using a large professional hoster (at least for western Europe), so it should provide a programmable load balance/auto scaler. Could you please set it to preemptively span more server instances about half an hour before?

 

Thanks

  • Like 8
Link to comment
Share on other sites

Adding more server is not the good solution.

The solution is to :

  • remove unanswered HTTP request (maybe the cause of the lags) ;
  • use IndexDB/LocalStorage to cache contents ;
  • use SVG img ;
  • Minimize ALL contents for fuck sake !
  • Stop loading pages at each actions, that's stupid (one big cause of lags).
  • Use lazy loads.

 

  • Like 6
  • Thinking 1
Link to comment
Share on other sites

I'll tell you an interesting observation.

So after the restart of the league a lot of people at the same time trying to spend the league points and goes to do battles in the tower. To do this, they open a battle window.

Now take the extension Adblock Plus, which can block images from the site. We add two filters that block avatars of girls and full height pose of girls.

||hh2.hh-content.com/pictures/girls/*ico*$image
||hh2.hh-content.com/pictures/girls/*ava*$image

Disable all other filters, go to the battle window and see the number of blocked elements.

003.thumb.jpg.045b1bdc10d67fee3222ecd4efbf57eb.jpg

Do you see the number 790 on the screenshot? That's how many pictures the game tries to load when it comes to the page. Even if they don't upload them and they're already in the browser cache, requests are still sent to the site as far as I know. The funny thing is that these pictures are only used if the player wants to change the girls in the team, which a normal player does very rarely. At 99.99% on the battle screen we see only 6 girls three of their own and three of their opponents, but the game still loads pictures of all the girls that the player has. I have, for example, their 350 +, hence the number and get avatars + poses (and poses all recently translated into high quality and their size has increased).

Well, then there will be simple arithmetic let the player has about 250 girls and when you go to the battle screen, he makes 500 requests. At the beginning of the league there are 15 battles, that's 15*500=7500. The game has 60k+ players who are active during the week (data from the tower). Let at least 10% of them try to make battles at the beginning of a new league. 6000*7500=45 000 000. Forty-five million requests during the first 15-20 minutes. Much or little I do not know, but something tells me that a lot of that is why server lags occur. Actually this is what ddos attacks on servers do - a lot of meaningless requests to the site in a short time.

The conclusion here is simple - you need to optimize the code of the game, especially the old screens that have not changed since the time when players had 20-30 girls. It would be nice to reduce some pictures, separate the league screens and weekly tops in the tower and more. In short, there is a lot of work to do. Except instead they do some nonsense like pop-up messages that piss everybody off. That's the way it is.

  • Like 8
  • Thanks 4
  • Thinking 1
  • Sad 1
Link to comment
Share on other sites

  • Moderator
hace 44 minutos, Lemus dijo:

I'll tell you an interesting observation.

So after the restart of the league a lot of people at the same time trying to spend the league points and goes to do battles in the tower. To do this, they open a battle window.

Now take the extension Adblock Plus, which can block images from the site. We add two filters that block avatars of girls and full height pose of girls.

||hh2.hh-content.com/pictures/girls/*ico*$image
||hh2.hh-content.com/pictures/girls/*ava*$image

Disable all other filters, go to the battle window and see the number of blocked elements.

003.thumb.jpg.045b1bdc10d67fee3222ecd4efbf57eb.jpg

Do you see the number 790 on the screenshot? That's how many pictures the game tries to load when it comes to the page. Even if they don't upload them and they're already in the browser cache, requests are still sent to the site as far as I know. The funny thing is that these pictures are only used if the player wants to change the girls in the team, which a normal player does very rarely. At 99.99% on the battle screen we see only 6 girls three of their own and three of their opponents, but the game still loads pictures of all the girls that the player has. I have, for example, their 350 +, hence the number and get avatars + poses (and poses all recently translated into high quality and their size has increased).

Well, then there will be simple arithmetic let the player has about 250 girls and when you go to the battle screen, he makes 500 requests. At the beginning of the league there are 15 battles, that's 15*500=7500. The game has 60k+ players who are active during the week (data from the tower). Let at least 10% of them try to make battles at the beginning of a new league. 6000*7500=45 000 000. Forty-five million requests during the first 15-20 minutes. Much or little I do not know, but something tells me that a lot of that is why server lags occur. Actually this is what ddos attacks on servers do - a lot of meaningless requests to the site in a short time.

The conclusion here is simple - you need to optimize the code of the game, especially the old screens that have not changed since the time when players had 20-30 girls. It would be nice to reduce some pictures, separate the league screens and weekly tops in the tower and more. In short, there is a lot of work to do. Except instead they do some nonsense like pop-up messages that piss everybody off. That's the way it is.

And me moving some code to assembler right now to win some microseconds per frame... 😰

  • Haha 4
Link to comment
Share on other sites

1 hour ago, Kenrae said:

And me moving some code to assembler right now to win some microseconds per frame... 😰

I know you're joking but if they pull out another Legendary Contests shit, we all might want to do this for real....

 

2 hours ago, Lemus said:

Do you see the number 790 on the screenshot? That's how many pictures the game tries to load when it comes to the page. Even if they don't upload them and they're already in the browser cache, requests are still sent to the site as far as I know. The funny thing is that these pictures are only used if the player wants to change the girls in the team, which a normal player does very rarely. At 99.99% on the battle screen we see only 6 girls three of their own and three of their opponents, but the game still loads pictures of all the girls that the player has. I have, for example, their 350 +, hence the number and get avatars + poses (and poses all recently translated into high quality and their size has increased).

Not only that mind you, we could just use a separate/proper screen just to shuffle around our 3 battle girls, instead of loading our entire god damn harem. Imagine how good it would be if they only put a little bit more effort into the battle screen, so we dont load 500+ requests every god damn battle, while also letting us have a more convenient way of shuffling girls around if we really want to. 

Link to comment
Share on other sites

  • Moderator
hace 1 hora, Čamuga dijo:

I know you're joking but if they pull out another Legendary Contests shit, we all might want to do this for real....

It was tongue in cheek but real, that's what I was doing at that moment 😅

  • Haha 1
Link to comment
Share on other sites

20 hours ago, Lemus said:

I'll tell you an interesting observation.

So after the restart of the league a lot of people at the same time trying to spend the league points and goes to do battles in the tower. To do this, they open a battle window.

Now take the extension Adblock Plus, which can block images from the site. We add two filters that block avatars of girls and full height pose of girls.

||hh2.hh-content.com/pictures/girls/*ico*$image
||hh2.hh-content.com/pictures/girls/*ava*$image

Disable all other filters, go to the battle window and see the number of blocked elements.

003.thumb.jpg.045b1bdc10d67fee3222ecd4efbf57eb.jpg

Do you see the number 790 on the screenshot? That's how many pictures the game tries to load when it comes to the page. Even if they don't upload them and they're already in the browser cache, requests are still sent to the site as far as I know. The funny thing is that these pictures are only used if the player wants to change the girls in the team, which a normal player does very rarely. At 99.99% on the battle screen we see only 6 girls three of their own and three of their opponents, but the game still loads pictures of all the girls that the player has. I have, for example, their 350 +, hence the number and get avatars + poses (and poses all recently translated into high quality and their size has increased).

Well, then there will be simple arithmetic let the player has about 250 girls and when you go to the battle screen, he makes 500 requests. At the beginning of the league there are 15 battles, that's 15*500=7500. The game has 60k+ players who are active during the week (data from the tower). Let at least 10% of them try to make battles at the beginning of a new league. 6000*7500=45 000 000. Forty-five million requests during the first 15-20 minutes. Much or little I do not know, but something tells me that a lot of that is why server lags occur. Actually this is what ddos attacks on servers do - a lot of meaningless requests to the site in a short time.

The conclusion here is simple - you need to optimize the code of the game, especially the old screens that have not changed since the time when players had 20-30 girls. It would be nice to reduce some pictures, separate the league screens and weekly tops in the tower and more. In short, there is a lot of work to do. Except instead they do some nonsense like pop-up messages that piss everybody off. That's the way it is.

absolutely ridiculous. this should be the devs top priority!

  • Like 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...