Jump to content

Large values of variables for objects


Recommended Posts

Hello everyone. Please help me figure out the data of the objects that I assign via setVariable. I noticed that the more data the objects have, the longer the "Finishing handshake" lasts. I have some kind of "storage boxes" in which users store their belongings. And now the length of variables in some warehouses goes beyond 1000 characters. If I don't call setVariable to specify which user items are there, then the "Finishing handshake" lasts a couple of seconds. If I specify items in this storage, then the "Finishing handshake" takes more than 10-15 seconds. What do you recommend to do with this?

Link to comment
Share on other sites

  • 2 weeks later...

Does anyone know how to treat it? I tried to transfer data from the server to the client on request in small parts. But the problem started. There is so much data that the game started to run quickly, but when receiving data, it simply slowed down until it received all the data. Despite the fact that I implemented async/await, the main thread still stopped completely. So transferring data from the server to the client by events is not the best option! P.S. - I still really hope that someone will help me. At least answer, can this really happen because of big data in setVariable? Or is it still not about this function? Why can the finishing Handshake hang for a long time when connecting to the server? Only to mine.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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