Author Topic: The isBig parameter  (Read 5170 times)

Dechcaudron

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
The isBig parameter
« on: July 01, 2014, 10:37:16 AM »
Hi there GCC,

I've been wondering for a long time what the isBig argument in the SendToPlayer(s) methods is for. If specified true, do you run a compression-decompression algorithm for the sent data?

Thanks beforehand!
Dechcaudron

AMarinov

  • Global Moderator
  • Newbie
  • *****
  • Posts: 17
    • View Profile
Re: The isBig parameter
« Reply #1 on: July 01, 2014, 02:00:40 PM »
Hi Dechaudron,

The isBig parameter is used to indicate that message is larger than the maximum allowed size for a regular message, thus instructing the communication system to send it with lower priority. It was not a great idea, and it will be removed in the next version, since the size of message can be evaluated automatically and manual parameter is not needed and only makes the messaging methods calls more complex than necessary. The "small" and "big" messages will be covered in more details in documentation, for now just have in mind that due to our aim to provide optimal communication speed, the "big" messages will be processed intentionally slower than the regular ones.
As for the compression, yes, it is needed and it will be a transparent part of the communication.

Regards,
Atanas

Dechcaudron

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: The isBig parameter
« Reply #2 on: July 01, 2014, 02:11:32 PM »
Hi Atanas,

thanks for the answer. Can you provide the size limit between small and big? It's ok if you haven't decided that yet.

Best wishes,
Dechcaudron

AMarinov

  • Global Moderator
  • Newbie
  • *****
  • Posts: 17
    • View Profile
Re: The isBig parameter
« Reply #3 on: July 01, 2014, 02:57:22 PM »
Most probably the threshold will be 4Kb

Regards,
Atanas

Dechcaudron

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: The isBig parameter
« Reply #4 on: July 02, 2014, 07:45:25 AM »
Thanks!