Thoughts on daily refreshing in games

Source: Internet
Author: User

Many logics in the game need to be refreshed daily, whether it is, or. Here we take the physical strength as an example. The legend of the turret receives physical strength from to every day.

There are many ideas for implementing the daily refresh logic.

1. When a player goes online, it notifies the player to refresh the remaining time and whether the player has received the information. And then send it to the client.

2. Each time a Player opens the panel, a request is sent. When the time is reached, the server pushes over.

3. Each time a Player opens the panel, a request is sent. When the time is reached, the client re-opens the Panel message.


All three can be used, but for the purpose of saving traffic in mobile games, the legend of the turret is the third. It seems unreasonable at first glance. It is actually reasonable. For example, if one server has 1000 gamers and only about 500 gamers are online at the same time, up to 500 of these 200 gamers can be opened at this point. In this way, only 200 messages are pushed at the same time. In the second way, 500 messages are pushed at the same time. In this way, the server's load capacity is actually enhanced.

Thoughts on daily refreshing in games

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.