I made an online mode for my game, it is in implementations on Qt, C ++ and iOS, Objective-C ; HTTP server on Python, except for HTTP there is nothing.

The game has two main windows for a network game: a table with all available games and a current game window. In both windows I send an appropriate request to the server once a second. In the current game window there is a parameter - the current game version, if there is no newer on the server, it does not send.
And in the window of all available games, all the data is constantly generated and sent, the table is regularly and senselessly updated, because data from different tables is collected, and how to check them for novelty is not clear.

The problem is that the device heats up quite well, which I would not like to see in a simple logical game. Experts, tell me, what and how can and should be corrected?

  • Transfer not the data, but changes in the data. - Pavel Mayorov
  • Try writing a server without a database at all. - Pavel Mayorov
  • Is it possible to use websocket? - Mikhail Vaysman
  • @PavelMayorov is not, without a database is not an option. The game is logical, you can get out of it for a few days, then continue the game, including from another device. - AivanF.
  • @MikhailVaysman unfortunately not. Of course, if you really want to, you can pay for a good server, rewrite a bunch of code, but for now I hope for an easier option. - AivanF.

0